Sota-ASR-Khmer · Sota សោតៈ Khmer speech recognition (PyTorch)
Sota ("ear") turns Khmer speech into text. A small model trained from scratch (not fine-tuned): 26M parameters. This repo has the PyTorch weights; for running the model, use the ONNX repo.
| Repo | What |
|---|---|
| Sota-ASR-Khmer (this repo) | PyTorch weights: model.safetensors (v4b, fp32, 25.89M parameters, 463 tensors) + config.json; v1 in v1/ |
| Sota-ASR-Khmer-26M-ONNX | To run it: ONNX int8 (≈33 MB) for onnxruntime, the browser and sherpa-onnx, with a Python helper |
| Sota-ASR-Demo | demo Space |
Try it: Sota Studio (subtitles in your browser) · in your browser (the audio never leaves your device) · website
Two models, same size and tokens: v4b (2026-11-24, main: the files at the top) and v1 (2026-11-11, in v1/). Older v3 and v4 were removed (v4b is better than both).
The PyTorch model code is not public yet, so these weights are for reference and research; the ONNX files run without it.
Results

Error rate (lower is better), beam 5. Every model ran on the same clips and was scored by the same rule: spaces and punctuation removed, and same-sound spellings counted as equal (្ដ / ្ត, ឲ្យ / ឱ្យ).
| Test set | v4b (main) | v1 (v1/) | v4 (previous, removed) | Qwen3-ASR-0.6B-Khmer | whisper-small-khmer-v2 |
|---|---|---|---|---|---|
| Our test set, 16 unseen speakers, 6,513 clips · CER | 3.33 | 3.18 | 4.01 | 12.12 | 17.98 |
| FLEURS Khmer test, 655 clips (outside set) · CER | 7.81 | 8.64 | 9.33 | 14.18 | 27.29 |
| DDD, 2 held-out speakers (only 32 clips, rough) · CER | 2.60 | 5.10 | 3.18 | 3.83 | 18.18 |
| Khmer + English mixed, 88 FLEURS clips · CER | 14.02 | 15.38 | 15.37 | 22.82 | 34.54 |
| English, LibriSpeech test-clean, 2,620 clips · WER | 20.45 | 37.67 | 31.28 | 8.68 | 205.72 |
| English, LibriSpeech test-clean · CER | 9.46 | 15.86 | 13.28 | 5.46 | 115.96 |
Model sizes: Sota 26M · Qwen3-ASR-0.6B-Khmer 600M · whisper-small-khmer-v2 ≈244M.
Read these numbers fairly:
- Our test speakers are new to Sota, but the recordings come from the same sources and style as Sota's training data. That favours Sota. FLEURS is the fairest outside test.
- whisper-small-khmer-v2 writes English speech in Khmer letters, so its English scores are very high.
- DDD (32 clips) and the mixed set (88 clips) are small: read them as rough.
- v4b writes English loanwords in Latin letters ("Subscribe"), while our test labels often write them in Khmer letters, which costs it some CER on our test set.
The ONNX int8 version gives the same accuracy as these weights (300 test clips, v4b: beam 2.88% int8 vs 2.91% PyTorch).
Sota v4b (2026-11-24, main)
The same 26M-parameter model as v1, trained on Sota-ASR-Khmer-Data (1,574 h: 758 h real speech + synthetic speech, test speakers removed), with spelling errors in the labels fixed, and its decoder first taught 886M tokens of Khmer text (FineWeb-2 + Wikipedia, with every test sentence removed). Trained 110,000 steps on 3 GPUs (≈30 min of audio per step, ≈55,000 h seen in total); checkpoint = average of steps 102k–110k. Compared with v4 (the same run stopped at 40k steps), every test set improved: our test 4.01 → 3.33, FLEURS 9.33 → 7.81, English WER 31.3 → 20.5.
The ONNX repo's sota_infer.py also has a new skip check: the attention decoder sometimes jumps over a stretch of speech; when the beam
result explains the audio much worse than the CTC draft (CTC score more than 25 lower), the draft is kept.
Sota v1 (2026-11-11, in v1/)
v1 is still the best on our own test set (3.18%), which is clean read Khmer from the same sources as its training data.
Trained on ≈237 h real Khmer speech + ≈610 h synthetic speech (see Training), 100k steps on one RTX 3090 Ti.
Files: v1/model.safetensors + v1/config.json (same architecture and tokens as v4b).
Architecture

- Input: 16 kHz mono audio. The log-Mel front end (80 bins, 25 ms window, 10 ms hop) is inside the model, so the ONNX file takes raw audio.
- Subsampling: two stride-2 convolutions, 10 ms → 40 ms frames (1.8M parameters).
- Encoder: 12 Conformer blocks, d_model 256, 4 heads with rotary position embeddings, FFN 1024, conv kernel 31 (18.3M).
- Heads: a CTC head (0.9M) and a 3-layer attention decoder (4.9M). The decoder was pre-trained on Khmer text first.
- Tokens: 3,402 Khmer cluster tokens (whole written clusters, shared with the Chakkhu OCR model).

Decoding: a fast CTC greedy draft, then beam search with 5 beams scored by the decoder and CTC together (0.7 decoder + 0.3 CTC), with length guards that fall back to the CTC draft if the decoder runs away or stops early.

Training
| Data | ≈237 h real Khmer speech (NXKMER TTS 450, OpenSLR 42; see Citation) + ≈610 h synthetic speech from VoxPocket TTS; real speech always used in full, synthetic at most half of each epoch |
| Split | by speaker; cloned voices and repeated sentences removed from dev/test; dev 5.2 h (8 speakers), test 12.0 h (16 speakers), real speech only |
| Augmentation | SpecAugment, speed 0.9/1.0/1.1, background noise (MUSAN), room echo, phone-call simulation |
| Loss | 0.3 · CTC + 0.7 · cross-entropy (label smoothing 0.1) |
| Schedule | decoder pre-trained on 315k Khmer sentences (10k steps), then 100k steps of speech training, AdamW, 25k warmup, bf16 |
| Hardware | one RTX 3090 Ti, about 8 hours for the full run |
| Final weights | average of the last 5 checkpoints (80k–100k steps) |
Training data
Sota's training speech is now one cleaned dataset (updated 2026-11-19), for the next version:
- Sota-ASR-Khmer-Data-Preview: public, 200 sample clips (designed voices only, 16 kHz).
- Sota-ASR-Khmer-Data: the full set, private (it includes real people's recordings and voice clones): 1,593 h, 947,571 clips, ≈18,222 voices, 16 kHz; train 1,573.8 h + test sets 19.7 h (Sota test 12.0 h, dev 5.2 h, FLEURS test 2.4 h, DDD test 0.1 h), never trained on.
Files
| File | What it is |
|---|---|
model.safetensors | Sota v4b, all weights, fp32: front end (log-Mel buffers are rebuilt in code), subsampling, 12 Conformer blocks, CTC head, 3-layer attention decoder |
config.json | Model sizes (d_model 256, 4 heads, FFN 1024, 12 layers, kernel 31, 3 decoder layers, 3,402 tokens) and training-time SpecAugment settings |
v1/model.safetensors + v1/config.json | Sota v1 |
figures/ | The diagrams on this page |
Token list: tokens.json in Sota-ASR-Khmer-26M-ONNX (0 pad, 1 BOS, 2 EOS, 3 unk, 4 CTC blank).
Limitations
- Small model: expect more errors on noisy audio, phone calls, fast casual speech and strong accents.
- English is much weaker than Khmer (20% WER on LibriSpeech; Qwen3-ASR-0.6B-Khmer gets 8.7%).
- Output is Khmer text without spaces between words (Khmer is written that way), with little punctuation.
Citation
@misc{ing2026sota,
author = {Ing, Muyleang},
title = {Sota: A Small Khmer Speech Recognition Model Trained from Scratch},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/muyleanging/Sota-ASR-Khmer}
}
Data and voices Sota learned from
Real speech was used for training and for the dev/test sets. The other sets were used only as reference voices for VoxPocket to clone when making the synthetic speech; their recordings were not trained on directly. Please credit them too.
| Set | By | Used as | License |
|---|---|---|---|
| NXKMER TTS 450 | NTQAI | real speech (38 speakers): ≈212 h train, all dev, most test | CC BY 4.0 |
| OpenSLR 42 | real speech (Sodimana et al., SLTU 2018) | CC BY-SA 4.0 | |
| VoxPocket + VoxCPM2 | Ing Muyleang · OpenBMB | made the ≈610 h of synthetic speech | Apache-2.0 |
| FLEURS | reference voices | CC BY 4.0 | |
| Khmer Speech Corpus | seanghay | reference voices | CC BY 4.0 |
| iAny Khmer Voice | sengtha / iAny community | reference voices | CC BY-SA 4.0 |
| Cultural Khmer ASR Dataset | Digital Divide Data | reference voices; v3: ≈1,062 h real speech training | CC BY-SA 4.0 |
| YODAS2 | ESPnet | reference voices | CC BY 3.0 |
| khm-asr-open | rinabuoy | reference voices | not stated |
| Khmer Speech of Phnom Penh Gendarmerie | seanghay | reference voices | research only |
Compared against, not trained on: Qwen3-ASR-0.6B-Khmer and whisper-small-khmer-v2.
@misc{ntqai2026nxkmer,
author = {NTQAI},
title = {NXKMER TTS 450},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/datasets/NTQAI/nxkmer-tts-450}
}
@inproceedings{kjartansson-etal-tts-sltu2018,
title = {{A Step-by-Step Process for Building TTS Voices Using Open Source Data and Framework for Bangla, Javanese, Khmer, Nepali, Sinhala, and Sundanese}},
author = {Keshan Sodimana and Knot Pipatsrisawat and Linne Ha and Martin Jansche and Oddur Kjartansson and Pasindu De Silva and Supheakmungkol Sarin},
booktitle = {Proc. The 6th Intl. Workshop on Spoken Language Technologies for Under-Resourced Languages (SLTU)},
year = {2018},
address = {Gurugram, India},
pages = {66--70},
url = {http://dx.doi.org/10.21437/SLTU.2018-14}
}
@misc{ing2026voxpocket,
author = {Ing, Muyleang},
title = {VoxPocket: A Small Khmer Text-to-Speech Model with Voice Cloning and Styles},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/muyleanging/VoxPocket-TTS-Khmer}
}
@article{voxcpm2025,
title = {VoxCPM: Tokenizer-Free TTS for Context-Aware Speech Generation and True-to-Life Voice Cloning},
author = {Zhou, Yixuan and Zeng, Guoyang and Liu, Xin and Li, Xiang and Yu, Renjie and Wang, Ziyang and Ye, Runchuan and Sun, Weiyue and Gui, Jiancheng and Li, Kehan and Wu, Zhiyong and Liu, Zhiyuan},
journal = {arXiv preprint arXiv:2509.24650},
year = {2025}
}
@article{fleurs2022arxiv,
title = {FLEURS: Few-shot Learning Evaluation of Universal Representations of Speech},
author = {Conneau, Alexis and Ma, Min and Khanuja, Simran and Zhang, Yu and Axelrod, Vera and Dalmia, Siddharth and Riesa, Jason and Rivera, Clara and Bapna, Ankur},
journal = {arXiv preprint arXiv:2205.12446},
year = {2022}
}
@inproceedings{li2023yodas,
title = {Yodas: Youtube-Oriented Dataset for Audio and Speech},
author = {Li, Xinjian and Takamichi, Shinnosuke and Saeki, Takaaki and Chen, William and Shiota, Sayaka and Watanabe, Shinji},
booktitle = {2023 IEEE Automatic Speech Recognition and Understanding Workshop (ASRU)},
pages = {1--8},
year = {2023}
}
License
Preview release. See LICENSE: free to try and evaluate; the final license will be set once the license of the real training speech is confirmed.
Family
Akkhara អក្ខរៈ types · Chakkhu ចក្ខុ reads · Sota សោតៈ listens · VoxPocket speaks. By Ing Muyleang.