In this tutorial, we will see how to easily transcribe Youtube Videos with OpenAI Whisper.
If you are new to OpenAI Whisper, check out this getting started guide.
Table of Contents
Transcribe Youtube Videos with OpenAI Whisper
Requirements
- A Mac, Linux, or Windows Computer
- Python 3.x or higher installed
- A little knowledge of command line and how to type in and run python code.
If you are for something less technical way to transcribe youtube videos with OpenAI Whisper, check out this GUI Browser-based Application from HuggingFace.
But if you still want to do this locally on your own computer, continue reading.
Setup
pip install git+https://github.com/openai/whisper.git pip install pytube
# first we import whisper and pytube modules import whisper
# print the resulting transcription print(results["text"])
Running the Whisper python code
Save the python file and execute it from the command line program
You will see the transcribed text displayed on the screen.
Next, change the video link in the above code to one of the youtube videos you want to transcribe, save the python file and run it again.
Here is the whole code running inside a Google Colab Notebook that you can run yourself in a browser.