Auris 1 — Uzbek speech-to-text
A 315M-parameter CTC recogniser for Uzbek in the Latin script, built on wav2vec2 XLS-R 300M and shipped with a 4-gram language model. It handles the Russian loanwords and Russian numerals that Uzbek speakers mix into ordinary sentences, and it runs faster than real time without a GPU.
This model is built for cost and predictability rather than for the lowest possible error rate.
Author: Elchin Toyirov
Model details
| property | value |
|---|---|
| Architecture | Wav2Vec2ForCTC, 24 layers, hidden size 1024, 315.5M parameters, fp32 |
| Vocabulary | 31 tokens, Uzbek Latin |
| Input | 16 kHz mono float32 |
| Bundled decoder | 4-gram KenLM, 201 MB quantised trie, 842,177 unigrams |
| Download | ~1.5 GB (1.26 GB weights + 201 MB language model) |
Accuracy
| test set | clips | WER | CER |
|---|---|---|---|
FLEURS uz_uz test | 707 | 13.96 % | 3.79 % |
| Uzbek Speech Corpus, speaker-disjoint split | 1858 | 11.83 % | 4.51 % |
Beam search with the bundled language model. Greedy decoding, with no extra dependencies, gives 24.02 % and 16.31 % respectively.
Cost
| GPU (RTX 5060 Ti) | CPU, 8 threads | CPU, 4 threads | |
|---|---|---|---|
| Real-time factor, with LM | 0.007 – 0.008 | 0.130 – 0.135 | 0.153 – 0.162 |
| Real-time factor, greedy | 0.005 – 0.0065 | 0.131 – 0.136 | 0.158 – 0.159 |
| Median latency, clips ≤ 5 s | 21 – 26 ms | 371 – 406 ms | 424 – 451 ms |
| Resident memory after load | 1.6 GB VRAM | 1.1 GB RAM | 1.1 GB RAM |
| Peak resident memory | 1.6 GB VRAM | 3.3 GB RAM | 3.3 GB RAM |
All figures are batch size 1, over 120 clips from each test set; the ranges span the two sets. Fewer cores will be slower — measure on your own hardware before sizing anything.
Two rows there are worth reading twice. The language model is effectively free on CPU: the gap between the greedy and LM rows is smaller than the run-to-run variation, because beam search costs almost nothing next to the acoustic pass. And peak memory is three times the resident figure — self-attention allocates transiently in proportion to clip length, so size a CPU deployment for ~3.3 GB rather than for the 1.1 GB you see after loading. Chunking long audio keeps that peak down.
Design goals
A CTC model reads the whole clip in one pass rather than decoding token by token, and at 315M parameters it serves from a small CPU box rather than a GPU. That is the trade this model makes: it is not the lowest-error Uzbek recogniser available, it is a cheap and predictable one.
On non-speech input the two decoders behave differently, and it matters. Across 33 probes —
digital silence, white noise from −80 to −20 dBFS, mains hum, pure tones, at 1 s, 3 s and 10 s —
greedy decoding produced no output at all, 33 times out of 33. The bundled beam search produced
a short junk string on all 33: always one token of 1 to 12 characters (a, iii,
iiiiiiiiiiii), growing with duration, never a sentence.
That is the beam search, not the language model. With no LM at all it is worse; the KenLM cuts the invented output roughly threefold. Summing over alignments simply gives one-character strings more probability mass than the empty string once there are enough frames, and the winning beam's score on non-speech overlaps the range seen on real speech, so a confidence threshold will not separate them.
What this model cannot do is the failure mode that actually causes damage: it has no autoregressive decoder, so it cannot continue a fluent, plausible sentence into audio that contains none. But if your input may contain silence, put a voice-activity detector in front of it — the decoder will not reject non-speech for you. On real audio, 4 of the 1858 USC clips returned an empty transcript.
Usage
Install the decoder dependencies — they are not pulled in by transformers:
pip install transformers torch soundfile pyctcdecode kenlm
# the `pipeline` example below also needs ffmpeg on PATH
With the language model (what the numbers above measure)
import soundfile as sf
import torch
from transformers import Wav2Vec2ForCTC, Wav2Vec2ProcessorWithLM
model_id = "elchintoyirov/auris-1-uzbek-stt"
processor = Wav2Vec2ProcessorWithLM.from_pretrained(model_id) # ~8 s: it builds the LM trie
model = Wav2Vec2ForCTC.from_pretrained(model_id).eval()
audio, sr = sf.read("sample.wav", dtype="float32") # 16 kHz, mono
assert sr == 16000
inputs = processor(audio, sampling_rate=16000, return_tensors="pt")
with torch.inference_mode():
logits = model(inputs.input_values, attention_mask=inputs.attention_mask).logits
print(processor.decode(logits[0].numpy()).text) # batch_decode(..., pool=...) for many clips
Without the language model
Greedy decoding needs no extra dependencies and is a little faster, but it is 4.5 points worse on USC and 10.1 points worse on FLEURS (16.31 % and 24.02 %). A CTC model scores every frame independently and has no sense of which word follows which; the n-gram model is what supplies that.
from transformers import pipeline
asr = pipeline("automatic-speech-recognition", model="elchintoyirov/auris-1-uzbek-stt")
print(asr("sample.wav")["text"])
Note that pipeline and AutoProcessor resolve to the plain Wav2Vec2Processor and therefore
decode greedily without warning. Use Wav2Vec2ProcessorWithLM explicitly for the numbers above.
The Wav2Vec2ProcessorWithLM path takes 16 kHz mono only — it does not resample. (pipeline
resamples for you, via ffmpeg.) Convert first:
ffmpeg -i input.ogg -ar 16000 -ac 1 -c:a pcm_s16le sample.wav
The language model adds about 490 MB of RAM and roughly 8 seconds to start-up. Build the processor once per process, not per request.
What the output looks like
The model emits exactly one text form, and only that form:
- lowercase Uzbek Latin
a–zwithoutw(coccurs only insidech), the apostrophe'and the space — every apostrophe variant (‘ ’ ʻ ʼ) is normalised to'; - no digits and no punctuation; numbers are spelled out, so
250000is transcribedikki yuz ellik ming, never250 ming; - Russian words are transliterated into Uzbek Latin —
shestdesyat,tisyach,zarplata.
There is no Cyrillic in the 31-token vocabulary, and no casing or punctuation restoration. If your pipeline needs digits or sentence case, add a post-processing step.
Evaluation
Test sets
| set | clips | audio | notes |
|---|---|---|---|
FLEURS uz_uz test | 707 | 2.15 h | the dataset's official test split, unmodified |
| Uzbek Speech Corpus, held-out | 1858 | 1.94 h | a custom speaker-disjoint split — read below |
The USC figure is not comparable to anyone else's "USC test" number. That corpus's official
splits are not speaker-disjoint — 26 speakers appear in more than one of them, so a model can be
scored on voices it trained on. The split used here pools all official splits and re-partitions them
by speaker (deterministic sha256 ranking, seed 13), giving 1858 clips from 30 speakers that share no
speaker with any training data. load_dataset("murodbek/uzbek-speech-corpus", split="test") returns
a different, partly overlapping 3837 rows.
Neither set was used to train this model, to stop its training early, or to select this checkpoint.
Protocol
- Greedy CTC decoding, or beam search with the bundled 4-gram KenLM at
alpha=0.5,beta=0.5,beam_width=100, throughWav2Vec2ProcessorWithLM.decode— the same call the usage examples make, so these figures are what the documented code path produces. The LM weights were not tuned; a grid search on a development set would probably improve them, so the LM figures here are conservative. - WER and CER with
jiwer, on text put through one normaliser on both sides: digits spelled out first (so a model that writes250is not punished against a reference that writesikki yuz ellik), then lowercase, apostrophes unified, punctuation stripped, whitespace collapsed. - Accuracy was measured with batch size 1, fp32, on one NVIDIA RTX 5060 Ti. The GPU speed figures come from the same runs; real-time factor is inference time ÷ audio duration and latency is the median over clips of 5 seconds or less. The CPU figure is the same fp32 model on 8 threads of a 20-core host — fewer cores will be slower, so measure on your own hardware before sizing anything.
- Hallucination probes: 3 s of digital silence and 3 s of low-level white noise, counting words in the normalised output.
Reproducing the accuracy numbers
The loop below is the shape of the evaluation, not a turnkey script: your_test_set is yours to
supply, and both sides must go through the same normalisation described above — without it the
numbers will not match, because the normaliser is what makes 250 and ikki yuz ellik comparable.
import soundfile as sf, torch
from jiwer import wer
from transformers import Wav2Vec2ForCTC, Wav2Vec2ProcessorWithLM
model_id = "elchintoyirov/auris-1-uzbek-stt"
processor = Wav2Vec2ProcessorWithLM.from_pretrained(model_id)
model = Wav2Vec2ForCTC.from_pretrained(model_id).to("cuda").eval()
refs, hyps = [], []
for path, reference in your_test_set: # 16 kHz mono wav + normalised transcript
audio, _ = sf.read(path, dtype="float32")
i = processor(audio, sampling_rate=16000, return_tensors="pt")
with torch.inference_mode():
logits = model(i.input_values.to("cuda"), attention_mask=i.attention_mask.to("cuda")).logits
hyps.append(processor.batch_decode(logits.cpu().numpy()).text[0])
refs.append(reference)
print(100 * wer(refs, hyps))
Limitations
- Clean, formal read speech is not where this model is strongest. Its FLEURS error rate is higher than its conversational-corpus error rate, and larger encoder–decoder models generally do better on that kind of audio. If prepared, professionally read material is your workload, measure before committing to this one.
- Numbers and amounts are the weak spot. Long numerals and the confusable pairs
(
yetti/yetmish,sakkiz/sakson,olti/oltmish) are where it fails most. Keep the language model on — it helps here more than anywhere else — and validate parsed amounts separately. - Latin script only. 31 tokens, no Cyrillic. Uzbek written in Cyrillic is out of scope, and so is fully Russian speech; Russian words inside Uzbek sentences come out transliterated.
- Read-speech bias in training. Spontaneous, overlapping or far-field speech will be worse than these numbers suggest.
- 16 kHz mono only. No timestamps, no diarisation, no punctuation, no casing. Self-attention is quadratic in input length, so feed it utterances, not hour-long recordings; chunk long audio.
- Error rates by dialect, gender, age and recording condition have not been measured. The headline figures are corpus averages and may not hold for any particular group of speakers.
- Greedy decoding is not the product. Without the language model this is a 16.31 % / 24.02 % model rather than 11.83 % / 13.96 %.
Licence
Apache-2.0. The base model, facebook/wav2vec2-xls-r-300m,
is Apache-2.0; see that repository for its copyright notice.
Citation
@misc{toyirov2026auris1,
title = {Auris 1: an Uzbek speech-to-text model},
author = {Toyirov, Elchin},
year = {2026},
url = {https://huggingface.co/elchintoyirov/auris-1-uzbek-stt}
}