Skip to main content
← All work

babel

Two people each wear a pair of glasses and talk in languages they do not share. Each hears the other in their own.

Status

The benchmark that decides which translation engine the glasses should run, plus a room two phones can join, one pair of glasses each, running on the desktop and reachable over tailnet HTTPS.

Language
Python
Corpus
FLEURS — real read speech, 102 languages
Hardware
CPU only, plus a GPU comparison run
Tests
102
Lines
5,331
Commits
40

Why measurement came first

Picking a translation engine on published numbers is impossible, because every model reports its latency on different hardware, different audio and a different definition of when the clock stops. The only way to choose is to run them all in one condition and time them the same way.

So the harness measures four things per engine: time until the listener has anything at all, which is what governs how the conversation feels; time to finish the whole utterance; processing time as a fraction of audio duration; and translation quality against reference translations.

The corpus is deliberately real recorded speech rather than synthesised audio. Synthetic speech is too clean, and a system tuned on it will not survive a room.

The result that changed the design

Doing speech-to-English in one step collapses on Chinese. It does not degrade — it fails, scoring under 1 BLEU, and it is slower while failing, because a model that cannot translate keeps generating. Routing through a dedicated translation stage instead lifts it roughly eightfold and runs several times faster.

The same change is not a general win, which is the more useful finding. On Spanish the two paths are level, and on this Japanese set the cascade is clearly worse than going direct. An architecture decision that looked like "always cascade outside Europe" is really per-language, and no amount of reading model cards would have said so.

What has not been measured

The harness ships with a written list of what it does not yet cover, which is the part most benchmarks leave out. The big one: everything here measures turn latency, where the clock starts when the speaker stops. Real systems emit while you are still talking, which changes the metric entirely and is not implemented yet.

The room

A room is two phones. Each relays its glasses' microphone up and plays the other person's translated speech back down. The translation session is unchanged: a remote player stands in for the speaker, so barge-in reaches the phone that is playing.

On the desktop the first run never came up. The WSL disk image sits on a spinning drive and large-v3 loaded at 0.4 MB/s, so the model cache moved to an SSD. The room server now starts on desktop boot, and a probe reports each utterance's onset and finish.

Moving decoding off the room's worker thread, capping tokens and using a greedy fast dial took the Spanish-to-English worst finish from +39.65 s to +4.37 s, with no frames dropped in either direction.