Skip to content

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.