Repository navigation
0.1
Self-hosted voice calls where each person speaks their own language and hears the other in theirs, with nothing leaving your machine.
Two people open a web page, pick a language and talk.
ambivox transcribes each sentence, translates it, speaks it again in the listener's language over WebRTC, and shows captions on both sides.
English, French, Spanish and Italian, in every direction.
What's inside
- Go server: rooms, signalling and WebRTC transport, built on Pion.
- Rust media engine: packet loss concealment, resampling, voice activity detection, scheduling and real-time pacing, with bounded queues throughout.
- Assembly kernels in SSE2, AVX2+FMA and NEON for the inner loops, each checked against a scalar reference.
- C++ inference engine wrapping whisper.cpp, sussurro.cpp and Piper voices behind a small C ABI.
Testing
- A simulated backend runs the whole pipeline without models, so the end-to-end test asserts on the words decoded from the audio that comes out of a real WebRTC call.
- A headless Chrome check drives the actual web client.
- CI runs everything on Linux x86-64 and macOS arm64.
Known limits
- Two participants per room.
- The translated voice follows once the speaker pauses, typically one to three seconds later.