A Python application that downloads videos from TikTok, Instagram, and YouTube Shorts and transcribes them to text with French translation.
- Download videos from TikTok, Instagram, and YouTube Shorts
- Offline transcription using Vosk
- Automatic translation from English to French
- Batch processing of multiple URLs
- Progress tracking for each operation with detailed status
- Simple and intuitive GUI
- Python 3.7 or higher
- FFmpeg installed on your system (for audio extraction)
- Vosk speech recognition model
- Clone or download this repository
- Install the required Python packages:
pip install -r requirements.txt-
Download a Vosk model from https://alphacephei.com/vosk/models
- Recommended:
vosk-model-en-us-0.22-lgraphfor English - Extract the model and place it in the application directory
- The model should be in a folder named
vosk-model-en-us-0.22-lgraph
- Recommended:
-
Install FFmpeg:
- Windows: Download from https://ffmpeg.org/download.html and add to PATH
- macOS:
brew install ffmpeg - Linux:
sudo apt install ffmpegor equivalent for your distribution
- Run the application:
python main.py- Enter TikTok, Instagram, or YouTube Shorts URLs in the text area (one URL per line)
- Click "Download Videos" to download the videos
- Once the videos are downloaded, click "Transcribe Videos" to transcribe them to text and translate to French
- The transcriptions and translations will be saved in the
transcriptionsfolder as text files
- TikTok:
https://www.tiktok.com/@username/video/1234567890123456789 - TikTok (with parameters):
https://www.tiktok.com/@username/video/1234567890123456789?is_from_webapp=1&sender_device=pc - TikTok (shortened):
https://vm.tiktok.com/XXXXXXXX/ - Instagram:
https://www.instagram.com/p/XXXXXXXXXX/ - Instagram Reels:
https://www.instagram.com/reel/XXXXXXXXXX/orhttps://www.instagram.com/reels/XXXXXXXXXX/ - Instagram Reels (with username):
https://www.instagram.com/username/reel/XXXXXXXXXX/ - YouTube Shorts:
https://www.youtube.com/shorts/XXXXXXXXXXX
videos: Downloaded videos are stored heretranscriptions: Transcribed text files are stored here
- Make sure the URL is valid and the video is publicly accessible
- Some videos may be region-locked or require authentication
- TikTok, Instagram, or YouTube may change their website structure, requiring updates to the downloader
- Make sure FFmpeg is installed and accessible in your PATH
- Ensure you have downloaded and extracted the Vosk model correctly
- The quality of transcription depends on the audio quality of the video
- For non-English videos, download an appropriate language model from the Vosk website
This project is licensed under the MIT License - see the LICENSE file for details.