Skip to content

Releases

0.7

Choose a tag to compare

@whispem whispem released this 23 Nov 13:08

ambivox 0.7 is about bigger models, and measuring them before trusting them.

Highlights

A benchmark for model setups. make bench runs 56 everyday sentences across every language pair through recognition, translation and synthesis. It reports the word error rate, chrF against a reference translation (the sacreBLEU formula) and how long each step takes.
Record your own voice with --recordings for real-world figures, and keep results as JSON with --json to compare setups.

TranslateGemma as an optional translator. --translator translategemma-12b runs Google's translation model through llama.cpp instead of the per-pair OPUS-MT models.
One model covers every pair, including French ↔ Spanish and French ↔ Italian, which opus does not.
On an M5 Max it edges out opus overall (chrF 77.4 vs 76.9) with clear gains into Italian and Spanish, at the cost of about 300 ms per sentence. opus stays the default and remains the right choice on a CPU.

The voice starts before the translation ends.
With a language model, each clause is spoken as soon as it is written while the rest is still being translated.
A new voice p50 column in the bench shows the effect: 382 ms to the first words against 421 ms for the whole sentence, and more on long sentences.
The model also keeps its prompt in memory between sentences.

Trying it

Download a Q4_K_M GGUF of TranslateGemma 12B (about 7 GB) into your model directory as translategemma-12b.gguf, then:

make lan BACKEND=sussurro TRANSLATOR=translategemma-12b

In Docker, set AMBIVOX_TRANSLATOR=translategemma-12b in .env.
Run make bench with both translators on your own machine before choosing.

TranslateGemma is published under Google's Gemma terms, which you accept by downloading it.
ambivox itself stays MIT.

For integrators

  • The C ABI gains translator at the end of ambivox_config, and ambivox_translate_stream, which reports the translation as it grows.
  • The Rust Engine::open now takes an Options struct.
  • New engine counter streamed_clauses.

Full details in the changelog.

0.6

0.6

Choose a tag to compare

@whispem whispem released this 22 Nov 13:14

Three things that make calls work better in real rooms.

Same room

With both devices side by side, each microphone also hears the other person, and ambivox used to translate whatever reached it.
Press Same room in the call: browsers report how loud every packet is, and only the microphone closer to whoever speaks is kept.

Translated voice starts earlier

If you both wear headphones, press Headphones.
The translated voice no longer waits for the end of the sentence: as soon as the start of it has settled in the live captions, at the first comma or after a few words, it is translated and spoken while you carry on.
Captions still show the whole sentence, translated in one piece.

Fewer words nobody said

Knocks, doors and other noises no longer turn into "merci" or "thank you".
The voice detector only lets through sounds with a pitch, as voices have, and recognition drops what whisper itself takes for silence.
On a fast machine, a larger whisper model now does even better: set AMBIVOX_WHISPER=large-v3-turbo in .env.

Also

  • Building needs Rust 1.100 or later, and the engine is written in C++20.
  • The protocol between the server and the engine is now version 3: upgrade both together (the Docker images always do).
  • New metric ambivox_rtp_packets_same_room_muted_total, new engine counter early_chunks, new ambivox-media serve --early-words and --whisper.

Run it

docker compose pull
docker compose up

Full list of changes in CHANGELOG.md.

0.5

0.5

Choose a tag to compare

@whispem whispem released this 21 Nov 21:22

A maintenance release, with one important fix for the Docker images.

Fixed

  • The 0.4 images crashed on most machines. whisper.cpp was tuned for the CPU of the GitHub machine that built the images, so the real speech backend stopped at start-up with an illegal instruction almost everywhere else. The engine is now built for the whole architecture: any x86-64 CPU with AVX2 (2013 onwards) and any arm64 CPU with ARMv8.2 dot product and half-precision instructions, such as Apple silicon, Raspberry Pi 5 or AWS Graviton. Builds from the sources stay tuned for the local machine; AMBIVOX_PORTABLE=1 makes them portable.

Updated

  • Go 1.26. Go 1.24 is no longer supported upstream. The server moves to Go 1.26 and current dependencies: Pion WebRTC 4.2.28, ICE 4.4.9, DTLS 3.1.16 and the golang.org/x packages. The code uses current Go idioms (go fix).
  • libopus 1.6.1 for the codec that carries every voice.
  • sherpa-onnx 1.13.8 for speech synthesis.
  • Python 3.13 in the model setup image.
  • CI tests with the latest stable Go, and the workflows use the current major versions of their actions.

Upgrading

docker compose pull
docker compose up

If you downloaded compose.yaml before, download it again: it now points to 0.5.

See CHANGELOG.md for the full list.

0.4

0.4

Choose a tag to compare

@whispem whispem released this 20 Nov 20:59

Known issue: the real speech backend crashes on start-up with these images on most machines. Use 0.5 or later.

ambivox now installs in one command. Nothing to compile, nothing to install but Docker.

Highlights

  • Ready-made images. Every release publishes ghcr.io/whispem/ambivox for x86-64 and arm64, built by a public workflow from the tagged sources. docker compose up downloads ambivox instead of compiling Rust, Go and C++ on your machine. Apple silicon runs it natively.
  • Real speech by default. The image runs whisper.cpp, sussurro.cpp and Piper out of the box, and still carries the simulated backend for testing (AMBIVOX_BACKEND=sim).
  • Models in one command. docker compose run --rm models downloads and prepares the speech and translation models in a Docker volume, with Python and the converter in their own image. Run it once; after that, ambivox needs no Internet at all.
  • Licences included. Each image carries the licences of everything compiled into it, in /usr/share/licenses/ambivox.

Getting started

curl -fsSLO https://raw.githubusercontent.com/whispem/ambivox/main/compose.yaml
echo AMBIVOX_HOST=192.168.1.20 > .env
docker compose run --rm models
docker compose up

Also

  • compose.build.yaml builds the images from the sources; compose.sussurro.yaml is gone.
  • The images are based on Debian 13 (trixie).
  • scripts/setup-sussurro.sh gains a converter step and can use an existing Python (AMBIVOX_CONVERT_PYTHON).

See CHANGELOG.md for the full list.

0.3

0.3

Choose a tag to compare

@whispem whispem released this 20 Nov 10:46

ambivox now runs on a local network with no Internet at all: a laptop and a Wi-Fi network are enough for two people to talk, each in their own language.

Highlights

  • One command. docker compose up starts the media engine and the server. Without Docker, make lan does the same.
  • HTTPS on a local network. The server generates its own certificate for the machine's addresses and prints the address to open on a phone, with the certificate fingerprint to check it.
  • Rooms by invitation. Starting a call creates a private room and a signed link that expires after 24 hours. Without the link, nobody gets in. An optional access key decides who may start calls.
  • No more echo loops. With two devices in the same room, one could hear the other's loudspeaker and send the translation round again, more garbled each time. While your translation plays, your microphone is now silenced (-echo-guard, on by default).
  • One UDP port for all calls, so a firewall or a container needs a single port open.
  • Nothing is kept. No accounts, no recordings, no transcripts. A new test runs complete calls in a network namespace with nothing but loopback, in CI on every push.

Also

  • scripts/setup-sussurro.sh supports Linux on arm64, so the real-speech Docker image runs natively on Apple silicon.
  • New docs: local network setup, privacy, and running behind your own reverse proxy.
  • New endpoint POST /rooms; the join message carries a token. Upgrade both ambivox and ambivox-media together.

See CHANGELOG.md for the full list.

0.2

0.2

Choose a tag to compare

@whispem whispem released this 17 Nov 23:02

Captions now appear while people speak.
Both participants watch the sentence being transcribed and translated in real time, and the final version replaces the draft once the speaker pauses.
The translated voice is never delayed by the drafts.

New

  • Live captions, refreshed every 800 ms. Tune or disable them with ambivox-media serve --partials-ms (0 turns them off).
  • Drafts are shown in italics in the web client and settle when the sentence is final.
  • New metrics: ambivox_partial_captions_total, plus the engine counters partials, partials_skipped and partial_ms.
  • The simulated backend now speaks word by word, so live captions are covered by the tests without any model.

Changed

  • The engine protocol moves to version 2: captions carry a partial flag. Upgrade ambivox and ambivox-media together.
  • Captions sent to the browser include a final field.
  • The Rust crates move to the 2024 edition.

Fixed

  • The join form stayed visible during a call.

0.1

0.1

Choose a tag to compare

@whispem whispem released this 17 Nov 22:02

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.