This tool allows you to transcribe YouTube videos. It uses OpenAI's Whisper model for transcription.
- Download audio from YouTube videos
- Transcribe audio using OpenAI's Whisper model
- Save transcriptions to a text file
- Secure storage of OpenAI API key
- Python 3.7 or higher
- pip (Python package installer)
-
Clone this repository:
git clone https://github.com/yourusername/yt2text.git cd yt2text
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Install the required packages:
pip install -r requirements.txt
-
Run the script:
python youtube_transcriber.py
-
Follow the prompts to:
- Enter your OpenAI API key (only required on first run)
- Provide a YouTube video URL
- Specify the output file name for the transcription
-
The script will download the audio, transcribe it, and save the transcription to a file.
- The OpenAI API key is stored securely in your home directory.
- Temporary audio files are automatically cleaned up after processing.
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright (c) 2024 PierrunoYT