/YouTube-Speech-to-text-to-subtitle

create video with subtitle from youtube video

Primary LanguagePython

YouTube-Speech-to-text-to-subtitle

create video with subtitle from youtube video demo gif with subtitle

How it works

  1. download youtube video from a url

  2. create srt file from video using deepgram speech to text

  3. use moivepy to combine original video and srt file to create video with subtitle

How to use

  1. clone this repo
git clone https://github.com/andy3278/YouTube-Speech-to-text-to-subtitle.git
  1. install dependencies
pip install -r requirements.txt
  1. setup deepgram api key create a file named .env in the root directory of this repo and add your deepgram api key
DG_KEY = your deepgram api key
  1. change the url in main.py to your youtube video url and run main.py
python main.py