How joaovitor-loopback/whisper-ai-local-song-translate works
Song Translate is a CPU-based command-line tool that downloads YouTube audio, transcribes it with automatic language detection, translates the lyrics to Brazilian Portuguese, and saves original and translated text files. Users can provide one or more URLs or a text file; batch failures do not stop later songs. The map separates input and orchestration, audio processing, and translation/output. The README documents the end-to-end workflow; the excerpt shows the downloader, FFmpeg decoding, transcription setup, and translation integrations. The per-song orchestration and file-writing details are not excerpted.
Main entry points: song_translate.py CLI and batch runner
Components 15
Input and orchestration
- CLI and batch runner
song_translate.py - URL input
song_translate.py
Audio processing
- Audio downloader
song_translate.py - FFmpeg audio decode
song_translate.py - Speech transcription
song_translate.py
Translation and output
- Translation selection
song_translate.py - DeepL translation
song_translate.py - Argos translation
song_translate.py - Lyrics text files
song_translate.py
Other components
- User
- YouTube
- FFmpeg
- faster-whisper
- DeepL API
- Argos language packages
Connections 14
- User → CLI and batch runner: runs
README.md - CLI and batch runner → URL input: accepts URLs
README.md - CLI and batch runner → Audio downloader: downloads audio
README.md - Audio downloader → YouTube: fetches audio
song_translate.py - CLI and batch runner → Speech transcription: transcribes audio
README.md - Speech transcription → FFmpeg audio decode: decodes audio
song_translate.py - Speech transcription → faster-whisper: uses model
song_translate.py - FFmpeg audio decode → FFmpeg: decodes with
song_translate.py - CLI and batch runner → Translation selection: translates lyrics
README.md - Translation selection → DeepL translation: selects engine
README.md - Translation selection → Argos translation: selects engine
README.md - DeepL translation → DeepL API: sends translation
song_translate.py - Argos translation → Argos language packages: downloads packages
song_translate.py - CLI and batch runner → Lyrics text files: writes results
README.md