title | emoji | colorFrom | colorTo | sdk | sdk_version | app_file | pinned | license |
---|---|---|---|---|---|---|---|---|
Youtube Whisper |
🐢 |
purple |
pink |
docker |
4.44.0 |
app.py |
false |
mit |
A simple Gradio app that transcribes YouTube videos by extracting audio and using OpenAI’s Whisper model for transcription. Paste a YouTube link and get the video’s audio transcribed into text.
- Conda installed (for managing environments)
- Python 3.9 or above
- FFmpeg installed (required for audio conversion)
git clone https://github.com/danilotpnta/Youtube-Whisper.git
cd Youtube-Whisper
You need FFmpeg for processing the audio. Install it based on your operating system:
-
macOS: Install FFmpeg via Homebrew:
brew install ffmpeg
-
Ubuntu/Linux: Install FFmpeg via apt:
sudo apt update sudo apt install ffmpeg
-
Windows:
- Download FFmpeg from the official website: FFmpeg Download.
- Extract the files and add the
bin
folder to your system’s PATH environment variable. For detailed instructions on adding FFmpeg to PATH, you can follow this guide.
Verify the installation by running:
ffmpeg -version
To set up the environment using the provided environment.yml
file:
conda env create -f environment.yml
Once the environment is created, activate it with:
conda activate yt-whisper
Once the environment is active, you can launch the Gradio app with:
python app.py
This will start a local server for the app, and you can access it by visiting the URL printed in the terminal (usually http://localhost:7860/
).
-
FFmpeg Not Found: If you see an error related to
ffmpeg not found
, ensure FFmpeg is installed and added to your system's PATH. You can also specify its location manually in the script by settingffmpeg_location
. -
Pytube Errors: If you encounter issues with
pytube
, ensure you’re using theyt-dlp
version and that your URL is correctly formatted. -
Update Dependencies: Ensure that
pip
andconda
are up to date:conda update conda pip install --upgrade pip
This project is licensed under the MIT License. See the LICENSE file for more details.