![]() An SRT file containing the original transcribed subtitles.The script will generate the following output files in the same directory as the input video: ![]() Python main.py -local_video -target_language 'zh' -model 'large' -translation_method 'whisper' To download a YouTube video, transcribe it, and generate dual subtitles using the M2M100 translation method: Note: You must provide either -youtube_url or -local_video, but not both. translation_method: The method to use for translation. model: Choose one of the Whisper models (default: 'small', choices: ). target_language: The target language for translation (default: 'zh'). local_video: The path to the local video file. youtube_url: The URL of the YouTube video. Showcase of GPT-3.5 translation Arguments (Optional, default: 'zh' for Simplified Chinese) -target_language: The target language for translation.-batch_size: The number of subtitles to process in a batch.-input_file: The path to the input subtitle file.Python translate_gpt.py -input_file INPUT_FILE_PATH The script will transcribe the video, translate the transcript, and generate dual subtitles in the form of an SRT file. ![]() ![]() You can provide either a YouTube URL or a local video file for processing.
0 Comments
Leave a Reply. |