Example on how to transcribe YouTube videos with OpenAI's Whisper language model.
Install the Python packages for Whisper, PyTube and Pandas. Whisper requires Python 3.7 or later.
pip install git+https://github.com/openai/whisper.git
pip install git+https://github.com/pytube/pytube.git
pip install pandas
Specify YouTube video URL with --video
option. The URL must be valid watch URL.
python3 main.py --video "https://www.youtube.com/watch?v=oHWuv1Aqrzk"
This code is available as interactive Jupyter Notebook on Colab.