My Discord game alliance is mostly Italian, with some French thrown in. I speak English. Voice chat was a wall of confident noise, and "translate this" bots only work on text.
So I built Live Translator: a little window that shows English subtitles for whatever my speakers are playing. Discord voice, a game, a YouTube video, it doesn't care. If my PC can hear it, I can read it.
[Italian 99%] Hi guys, it's 9pm and we're attacking the city. Take all the troops and don't forget the shields. The rules I built it under
My house rules: if it ain't free, skip it, local beats cloud, and nothing runs at boot unless I say so. So:
- No account, no API key, no subscription.
- Runs entirely on my PC. Nothing is recorded or saved.
- You start it when you want it, and close the window to stop it.
How it works
- PipeWire grabs the speaker output (
pw-recordon the sink monitor), so it hears other people, not my mic. - Chunks of speech go to Whisper "medium" via faster-whisper with
task=translate, which goes straight from ~100 languages to English, auto-detecting the language. - A plain GTK window shows the lines, about 1–2 seconds behind on a GPU.
Whisper has a famous habit of hallucinating "Thanks for watching!" over silence and music, so there's a filter for the classic phantom lines.
Talking back
Reading is half of it. At the bottom there's a reply bar: type English (or hit 🎤 Speak and say it) and it translates into whatever language it last heard, then copies it to the clipboard. Click Discord, Ctrl+V, Enter. Done.
That side uses Argos Translate models (49 languages) running directly on CTranslate2. I installed argostranslate with --no-deps and only use its tokenizers, so it never drags in PyTorch.
The GPU thing
My RTX 5060 has 8 GB, and my local AI butler already camps on about 7 of it. The translator tries the GPU, gets told "out of memory", and quietly falls back to the CPU. It still passed a real-world test. On a free GPU, it's about 0.6 s per chunk.
Limits, honestly
- It only translates into English when listening.
- Three people yelling at once = mush. Whisper is good, not psychic.
- Small reply languages are rough. The big ones (Italian, Spanish, French, German) are good.
Try it
Ubuntu/Debian with PipeWire:
git clone https://github.com/2db2du-byte/live-translator cd live-translator bash install.sh # or --cpu if you have no NVIDIA card MIT licensed. Made by me and Claude. Repo: https://github.com/2db2du-byte/live-translator