This project provides an auto translator service based on Whisper AI that allows you to download YouTube videos and automatically generate subtitles. Additionally, it supports generating subtitles from local mp3 or mp4 files.
- Python 3
- Whisper AI API key
- youtube-dl (for downloading YouTube videos)
- ffmpeg (for converting audio files to subtitles)
- Clone this repository to your local machine:
git clone https://github.com/JMFerreiraa/WhisperTranslateScript-youtube.git
- Install the required packages using pip
- To download a YouTube video and generate subtitles:
python3 generate_subtitles.py
- Select the option you want
The generated subtitles will be saved in the same directory as the audio file with the .srt
file extension.
Feel free to submit pull requests and issues. Any contributions, big or small, are always welcome!