Skip to content

Generate subtitles in any language for any video(为任何视频生成任意语言的字幕)

Notifications You must be signed in to change notification settings

guaguaguaxia/video_subtitle

Repository files navigation

中文 | English

OpenAI Whisper Video Subtitle Generator

License: MIT Issues Forks Stars

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.

how to use

  1. Clone the repository and ensure you have python enviroment and OpenAI api key
  2. make sure you have installed ffmpeg and configured the environment variables
  3. 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

parameter explain

  • 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

About

Generate subtitles in any language for any video(为任何视频生成任意语言的字幕)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages