Speech recognition · solo research project

Bulgarian ASR, built from scratch and measured honestly

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.

Open the live recogniser

Streaming Bulgarian speech recognition in the browser, with speaker labels.

3.93%

word error rate on a frozen parliament test set of unseen sessions, decoded with modified beam search

Training corpus
2,222.2 h · 12 registers
Parameters
65,549,011
Hardware
1 consumer GPU
Test set
16.4 h · 123,605 words

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.

01Three models, one variable

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.

The ladder · same frozen test split, same architecture
ModelCorpusRegistersDev WERTest WER
v1 (parliament specialist)649 h25.145.29
GP-v2 (general purpose)1,744.8 h83.944.12
GP-v32,222.2 h123.763.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.

02The benchmark that redirected the project

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.

v1 Zipformer (mine, 649 h) Whisper large-v3 (zero-shot) WER %, lower is better
25 10 15 20 5 0 Parliament · v1 Zipformer · 5.29% WER Parliament · Whisper large-v3 · 15.37% WER FLEURS · v1 Zipformer · 20.35% WER FLEURS · Whisper large-v3 · 11.97% WER Common Voice · v1 Zipformer · 22.27% WER Common Voice · Whisper large-v3 · 15.42% WER 5.29 15.37 20.35 11.97 22.27 15.42 Parliament FLEURS Common Voice my training domain read encyclopedic crowd-read

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.

03Checking that the gain was the gain I wanted

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.

Error decomposition · frozen test set, 123,605 words
ModelErrorsInsertionsDeletionsSubstitutions
v16,5431,4872,0183,038
GP-v25,0871,3141,5172,256
GP-v34,8601,3011,4502,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.

04Why the external language model was removed

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.

Rebuilding the n-gram · out-of-vocabulary rate and the resulting WER
Evaluation setOOV, v1 LMOOV, rebuilt LMWER, no LMWER, rebuilt LM
Dev (parliament)0.26%0.15%3.943.99
FLEURS4.98%3.21%9.8411.13
Common Voice7.90%4.06%8.6911.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.

05Streaming and the telephone band

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.

Latency ladder · dev set, greedy decoding, 128 frames of left context
ChunkAlgorithmic latencyDev WERCost vs offline
16~320 ms5.55+1.55
32 (operating point)~640 ms5.18+1.18
64~1.28 s4.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.

Narrowband penalty · dev set, wideband against simulated G.711a
ModelWidebandG.711aBand penalty
GP-v2 (no band augmentation)3.944.31+9.4% rel
GP-v33.763.94+4.8% rel
Streaming, no augmentation5.186.11+18.0% rel
Streaming, augmented5.285.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.

06What these numbers do not show

The parliament figure is the only unambiguous one on this page. The rest carry conditions, and stating them is part of the result.

FLEURS and Common Voice stopped being out-of-domain

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.

Leakage verified, with one residual I cannot close

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.

The Whisper comparison expired

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.

Quantization was measured on one CPU

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.