中文 | English
The OpenAI Whisper Video Subtitle Generator is a project that utilizes the OpenAI Whisper API to generate subtitles in any language for any video. The goal of this project is to help users easily create multilingual subtitles for video content, increasing the accessibility and reach of the videos.
- Clone the repository and ensure you have python enviroment and OpenAI api key
- make sure you have installed ffmpeg and configured the environment variables
- Run the following command
python make_subtitle.py --api_key xxx --work_dir xxx --video_file xxx --src_language en --dest_language chinese --proxy xx
- api_key: OpenAI api key,like
sk-xxx,sk-xxx,sk-xxx
- work_dir: the directory to save the all the files
- video_file: the video file name,like xxx.mp4
- src_language: the source language of the video,like
en
- dest_language: the language you want to generate,like chinese,english
- proxy: the proxy to use,like
http://127.0.0.1:7890