--- license: apache-2.0 language: - vi - en library_name: sherpa-onnx pipeline_tag: automatic-speech-recognition tags: - speech - asr - streaming - code-switching - vietnamese - zipformer - transducer - icefall - k2 - onnx model-index: - name: VietNote-Zipformer-78M-Streaming results: - task: type: automatic-speech-recognition name: Speech Recognition dataset: name: VietMed (test, zero-shot) type: leduckhai/VietMed split: test metrics: - type: wer value: 13.87 name: SyER - task: type: automatic-speech-recognition name: Speech Recognition dataset: name: GigaSpeech2 Vietnamese (test, zero-shot) type: speechcolab/gigaspeech2 split: test metrics: - type: wer value: 10.65 name: SyER - task: type: automatic-speech-recognition name: Speech Recognition dataset: name: FLEURS vi (test) type: google/fleurs config: vi_vn split: test metrics: - type: wer value: 6.89 name: SyER --- # VietNote-Zipformer-78M-Streaming **Streaming Vietnamese–English (code-switching) speech recognition that runs on a CPU.** Part of [VietNote ASR](https://github.com/kaisye/vietnote-asr): a 78M-parameter Zipformer transducer. Nhận dạng giọng nói tiếng Việt pha tiếng Anh, chạy trực tiếp trên CPU. - Live demo: **https://asr.vietnote.vn** - Code, ITN, demo, fine-tuning recipe: **https://github.com/kaisye/vietnote-asr** | | | |---|---| | Architecture | Zipformer2, causal (size M), stateless transducer, pruned RNN-T loss | | Parameters | 77.7M (78M) | | Tokens | BPE 6,144, shared Vietnamese + English | | Streaming | 640 ms chunks (32 frames), 128 frames left context | | Runtime | [sherpa-onnx](https://github.com/k2-fsa/sherpa-onnx) (Linux, macOS, Windows, Android, iOS, Raspberry Pi) | | Training | [icefall](https://github.com/k2-fsa/icefall), ~1,500 h, 45 epochs, average of 2 checkpoints | | License | Apache-2.0 | ## Highlights - **Code-switching:** recognises ~75% of English words inside Vietnamese speech, 2–5× the open Vietnamese models we tested (they get 14–36%), on par with a commercial API (Soniox, 76%). - **Finished text with the companion code:** digits (1,5 tỷ · 250.000 · 15/12 · tỷ số 2-1), punctuation and casing, brand names; self-corrections ("ba… à không, bốn triệu" → 4 triệu) are handled. - **Best streaming model on the zero-shot VietMed test** among those we measured (13.87% vs 14.30% for hynt 30M streaming, which was trained on VietMed). ## Files | Folder | Use | Size | |---|---|---| | `streaming/fp32/` | real time, most accurate (runs the web demo) | 274 MB | | `streaming/int8/` | real time on phones / small CPUs | 83 MB | | `offline/fp32/` | whole files, ~1 point better than streaming | 279 MB | | `offline/int8/` | whole files, small | 88 MB | | `pytorch/pretrained.pt` | fine-tuning with icefall ([guide](https://github.com/kaisye/vietnote-asr/blob/main/docs/FINETUNE.en.md)) | 311 MB | | `punct/` | punctuation + casing restorer (XLM-RoBERTa base, vocabulary pruned to 24k tokens, ONNX; `model.int8.onnx` 206 MB) | 399 MB | | `tokens.txt`, `bpe.model` | token table and SentencePiece model, shared by all | – | The int8 files are quantised per channel. A per-tensor int8 export of this model stops emitting text after a few seconds; do not re-quantise it with default settings (see `scripts/quantize_int8.py` in the GitHub repo). ## Usage ```bash pip install sherpa-onnx soundfile hf download Kaisye/VietNote-Zipformer-78M-Streaming --local-dir models --include "streaming/int8/*" --include tokens.txt ``` ```python import sherpa_onnx, soundfile as sf rec = sherpa_onnx.OnlineRecognizer.from_transducer( encoder="models/streaming/int8/encoder.int8.onnx", decoder="models/streaming/int8/decoder.int8.onnx", joiner="models/streaming/int8/joiner.int8.onnx", tokens="models/tokens.txt", num_threads=2, decoding_method="modified_beam_search", max_active_paths=4) audio, sr = sf.read("audio.wav", dtype="float32") # 16 kHz mono s = rec.create_stream() s.accept_waveform(sr, audio) s.input_finished() while rec.is_ready(s): rec.decode_stream(s) print(rec.get_result(s)) # lower case, numbers as words; ITN in the GitHub repo turns them into digits ``` Feed 100 ms pieces in a loop for live captions; see `examples/` in the GitHub repo for microphone input, ITN, punctuation and hotwords. ## Evaluation Syllable error rate (SyER, %), all systems re-run on the same machine and scored with the same text normaliser. ⭐ = zero-shot for this model. Full table, per-accent results and speed: [BENCHMARK.md](https://github.com/kaisye/vietnote-asr/blob/main/docs/BENCHMARK.en.md). | System | Type | VietMed ⭐ | GigaSpeech2 ⭐ | FLEURS+VIVOS | Code-switching dev | English words | |---|---|---|---|---|---|---| | **VietNote-Zipformer-78M-Streaming** | streaming | **13.87** | 10.65 | **6.88** | **9.62** | **75.5%** | | hynt Zipformer 30M streaming | streaming | 14.30 | **8.87** | 7.73 | 12.58 | 24.7% | | Moonshine streaming tiny vi | streaming | 19.74 | 14.38 | 10.50 | 22.10 | 20.8% | | hynt Zipformer 150M | offline | 11.90 | 7.20 | 5.14 | 10.81 | 35.5% | | hynt Zipformer 30M | offline | 12.93 | 7.40 | 6.06 | 11.01 | 28.9% | | viet-asr (dangvansam) int8 | offline | 17.33 | 14.71 | 15.21 | 16.52 | 5.0% | | VietASR Zipformer 70k h | offline | 14.19 | 6.75 | 7.50 | 13.22 | 14.3% | | PhoWhisper large | offline | 16.74 | – | 6.03 | 16.31 | 30.8% | | Whisper large-v3 | offline | 36.64 | – | 8.08 | 15.21 | 67.8% | hynt models were trained on VietMed_Labeled, Sub-GigaSpeech2-Vi and FLEURS (per their model cards). VietNote ASR was trained on the FLEURS and VIVOS train splits; the code-switching dev set comes from the same sources as part of the training data, so it favours VietNote ASR. ### Finished text (FLEURS, casing + punctuation + digits scored) 857 FLEURS test sentences against their original written form, case-sensitive, punctuation marks as tokens: Soniox 10.09 · **VietNote offline + ITN + punctuation 12.42** · **VietNote streaming + pipeline 13.55** · Whisper large-v3 15.05 · PhoWhisper 20.57 · viet-asr 86M 21.08 · hynt 30M streaming 24.61 (no formatting). ### Against commercial APIs and audio LLMs (400-utterance subsets) Paid APIs were run on subsets only: 400 code-switching dev utterances (100 per source, seed 0) and 400 FLEURS+VIVOS utterances (200 + 200); open models are scored on the same utterances. | System | Type | Code-switching dev | English words | FLEURS+VIVOS | |---|---|---|---|---| | VietNote-Zipformer-78M offline | open, CPU | **8.40** | 77.3% | 5.32 | | Gemini 4 Argon | API, LLM | 8.62 | **87.7%** | **2.61** | | **VietNote-Zipformer-78M-Streaming** | open, CPU, streaming | 9.54 | 75.6% | 6.45 | | Soniox | API, commercial ASR | 10.32 | 78.4% | 4.04 | | GPT-audio | API, LLM | 11.67 | 79.1% | 7.24 | | Whisper large-v3 | open, 1.5B | 15.03 | 66.7% | 7.99 | | GPT-audio-mini | API, LLM | 15.15 | 71.4% | 8.47 | | Gemini 3.8 Flash (low reasoning) | API, LLM | 16.51 | 81.1% | 12.02 | | PhoWhisper large | open, 1.5B | 17.58 | 28.4% | 5.66 | The dev set favours this model (same sources as part of its training data); on read speech (FLEURS+VIVOS) Gemini 4 Argon and Soniox are far ahead. Audio LLMs also fail operationally: GPT-audio answered like a chatbot instead of transcribing on 11/400 FLEURS+VIVOS clips, and Gemini 3.8 Flash truncated 22/400. ## Training data About 1,500 hours: public Vietnamese speech datasets, additionally collected Vietnamese–English code-switching speech, synthetic (TTS) speech, and a portion of data that cannot be shared; part of the labels were produced automatically. The FLEURS and VIVOS train splits are included. **No part of VietMed or GigaSpeech2 was used for training.** Labels are lower case with numbers written as words (normaliser 1.3 in the GitHub repo). ## Limitations - Larger offline models (e.g. hynt 150M) are more accurate on pure Vietnamese; on GigaSpeech2 we trail the models trained on it. - Accents: 8–10% SyER for Northern and South-Eastern speakers on VietMed, 16–31% for South-Western and Central. - Spontaneous multi-speaker, far-field speech (talk shows, lectures) has about twice the error of close-talk speech. - Rare proper names and English technical terms said quickly are often wrong; hotwords help for known names. - The raw output has no punctuation and writes numbers as words; use the companion ITN and punctuation model. ## Citation ```bibtex @misc{vietnote_asr_2026, title = {VietNote-Zipformer-78M-Streaming: streaming Vietnamese--English code-switching speech recognition}, year = {2026}, url = {https://huggingface.co/Kaisye/VietNote-Zipformer-78M-Streaming} } ``` Built with [k2](https://github.com/k2-fsa/k2), [icefall](https://github.com/k2-fsa/icefall), [lhotse](https://github.com/lhotse-speech/lhotse) and [sherpa-onnx](https://github.com/k2-fsa/sherpa-onnx). The punctuation model is fine-tuned from [XLM-RoBERTa base](https://huggingface.co/FacebookAI/xlm-roberta-base) (MIT).