YouTubeScript is a simple and efficient application that allows users to transcribe YouTube videos or uploaded audio files into text. It supports both original language transcription and language translation with subtitle files in .vtt
format.
- Transcribe YouTube videos via URL
- Transcribe uploaded audio files
- Translate transcriptions to multiple languages
- Generate
.vtt
subtitle files - Summarize transcriptions using a language model
- Easy interface with clear fields for repeated use
- Clone the Repository
git clone https://github.com/yourusername/YouTubeScript.git
cd YouTubeScript
- Install Dependencies
pip install -r requirements.txt
- Install ffmpeg (Required for Whisper)
- Linux:
sudo apt install ffmpeg
- Windows: Download here
gradio
openai-whisper
transformers
yt-dlp
Run the application with:
python app.py
- Select input type: YouTube video or audio file.
- Provide the YouTube link or upload an audio file.
- Choose the mode: Original or Translate.
- Select a language if translating.
- Click Get YouTubeScript 🪄.
- View the transcription summary and download the
.vtt
file. - Click **Clear Fields ** to reset the interface.
.
├── app.py # Main application code
├── requirements.txt # Dependency file
├── README.md # Project documentation
└── sub.vtt # Generated subtitle file
- To transcribe a YouTube video:
- Provide the URL and click Get YouTubeScript 🪄.
- To transcribe an uploaded file:
- Upload an audio file and follow the same steps.
- No transcription or empty subtitles: Make sure
ffmpeg
is installed. - Failed YouTube download: Confirm
yt-dlp
installation.
Happy Transcribing!