Speech recognition · solo research project
A 65.5M-parameter Zipformer transducer trained on 2,222 hours of Bulgarian, and the evaluation programme that twice told me the model I had was not the model I thought I had.
Streaming Bulgarian speech recognition in the browser, with speaker labels.
word error rate on a frozen parliament test set of unseen sessions, decoded with modified beam search
Everything here is one person's work on a single desktop GPU: corpus construction, training, decoding, evaluation and deployment. With no capacity to brute-force a result, every gain had to be argued for from data and measurement. That constraint is why this page is mostly about evaluation.
Architecture, tokenizer, optimiser schedule and train/dev/test split are identical across all three models. Only the corpus changed. That discipline is what makes the deltas below attributable to data rather than to a dozen simultaneous choices.
| Model | Corpus | Registers | Dev WER | Test WER |
|---|---|---|---|---|
| v1 (parliament specialist) | 649 h | 2 | 5.14 | 5.29 |
| GP-v2 (general purpose) | 1,744.8 h | 8 | 3.94 | 4.12 |
| GP-v3 | 2,222.2 h | 12 | 3.76 | 3.93 |
v1's 5.29 is its best system, which included an external word 3-gram. GP-v2 and GP-v3 ship without one, for reasons in section 04.
v1 looked finished. It beat off-the-shelf Whisper large-v3 on our test set by a factor of nearly three, and a single-domain number would have ended the investigation there. So I scored both models on three domains instead of one, through an identical text normaliser, and the ranking inverted.
The shape is the finding, not the ranking. Mine is a specialist: excellent at home, with a four-fold swing off-domain. Whisper is a generalist, flat between 11.97 and 15.42 everywhere, never brilliant and never bad. On the most neutral of the three sets, Whisper wins by 1.4×.
The decision this forced was about which metric governs. In-domain WER had been flattering a model that would be worse than a free download in any real deployment, so cross-domain WER became the number we steered by, and the product was re-scoped from a parliament tool to general-purpose Bulgarian ASR.
Before buying data I tested the cheaper explanation and it failed: 397 hours of audiobooks were already in the training set, and out-of-domain error had not moved. More hours of the same kind of speech were not the lever. Speaker, microphone and register diversity were.
A falling WER does not say which errors stopped happening, and a diversity intervention makes a specific prediction: it should cut substitutions, which are wrong-word confusions, rather than simply tidying up insertions and deletions around silence. So I decomposed every error on the test set.
| Model | Errors | Insertions | Deletions | Substitutions |
|---|---|---|---|---|
| v1 | 6,543 | 1,487 | 2,018 | 3,038 |
| GP-v2 | 5,087 | 1,314 | 1,517 | 2,256 |
| GP-v3 | 4,860 | 1,301 | 1,450 | 2,109 |
Substitutions fell 26% from v1 to GP-v2 and a further 6.5% to GP-v3, while insertions flatlined. The error profile moved the way the diversity hypothesis predicted, which is a stronger result than the headline number on its own.
On v1, a word 3-gram was the best system, taking it from 5.46 to 5.29. On GP-v2 it lost everywhere. The obvious suspect was vocabulary coverage, so I rebuilt the n-gram on the full general corpus: 14.38M words and 296,230 types, against v1's 7.91M and 164,262.
Coverage improved substantially. Quality got worse anyway.
| Evaluation set | OOV, v1 LM | OOV, rebuilt LM | WER, no LM | WER, rebuilt LM |
|---|---|---|---|---|
| Dev (parliament) | 0.26% | 0.15% | 3.94 | 3.99 |
| FLEURS | 4.98% | 3.21% | 9.84 | 11.13 |
| Common Voice | 7.90% | 4.06% | 8.69 | 11.20 |
Halving Common Voice's OOV rate made its WER worse by 2.5 points, with substitutions rising from 2,006 to 2,376. That isolates the mechanism: an n-gram supplies coverage and a phrasing prior, and only coverage had improved. The prior is parliamentary and literary, so on read-encyclopedic or crowd-read speech it rewrites correct words into corpus-likelier ones.
A larger n-gram cannot fix that, and register-matched text for "arbitrary Bulgarian" does not exist. The conclusion was that the transducer's own prior had overtaken a 3-gram's, so the shipped system decodes without an external LM. The language model and its compiled graph stay on disk, unused, with the measurement that retired them.
The deployment targets are live captioning and call transcription, which impose two constraints the offline benchmark cannot see: latency, and the 300–3,400 Hz passband of a phone line. A causal twin was trained on the same corpus with chunk size sampled per batch, so one checkpoint serves several latency settings chosen at decode time.
| Chunk | Algorithmic latency | Dev WER | Cost vs offline |
|---|---|---|---|
| 16 | ~320 ms | 5.55 | +1.55 |
| 32 (operating point) | ~640 ms | 5.18 | +1.18 |
| 64 | ~1.28 s | 4.88 | +0.88 |
Degradation is graceful, with no cliff at the lowest latency. At 640 ms the streaming model scores 5.32 on the frozen test set, which matches v1's best offline system (5.29) while covering twelve registers instead of two. A single averaged dev loss had hidden this spread entirely, which is why the plan called for a ladder rather than one number.
For the phone line I added a feature-domain band augmentation during training, then scored it against an audio-domain G.711a simulation built separately: resample to 8 kHz, high-pass at 300 Hz, A-law round-trip, back to 16 kHz. Scoring a model on its own augmentation proves nothing, so the test transform deliberately differs from the training one.
| Model | Wideband | G.711a | Band penalty |
|---|---|---|---|
| GP-v2 (no band augmentation) | 3.94 | 4.31 | +9.4% rel |
| GP-v3 | 3.76 | 3.94 | +4.8% rel |
| Streaming, no augmentation | 5.18 | 6.11 | +18.0% rel |
| Streaming, augmented | 5.28 | 5.64 | +6.8% rel |
Band augmentation halved the offline penalty and cut the streaming one by two thirds. It matters more for the causal model, which cannot reach forward for context to recover what the band removed. On clean audio the extra 477 hours bought streaming nothing, so that model looks data-saturated at 65M parameters and capacity is the next lever, not more speech.
The parliament figure is the only unambiguous one on this page. The rest carry conditions, and stating them is part of the result.
GP-v2 trained on their train splits, so 9.84 and 8.69 measure held-out-split, in-corpus performance. That is domain adaptation. Quoting the movement from v1's 20.35 and 22.27 as a generalization gain would conflate two different things, and I don't.
Zero cut-id, recording-id and sentence-text overlap between train and test splits of both corpora (0 of 658 for FLEURS, 0 of 3,201 for Common Voice). The residual is speaker overlap in FLEURS: its splits are sentence-level and it publishes no speaker ids, so the same voices may appear in both. Common Voice's splits are speaker-disjoint by construction.
It was clean when v1 ran, because v1 had never seen those corpora. Once FLEURS and Common Voice entered training, exposure was no longer held constant, and the head-to-head stopped being apples to apples. A self-recorded set in nobody's training data is the blocking dependency for any further generalization claim.
int8 export costs 0.03 WER against fp32, at a real-time factor of 0.007 on four threads. That was measured on a CPU with AVX-512 VNNI, and the export does not set reduced-range quantization, so the figures need re-measuring on any deployment CPU without VNNI before they are trusted there.