VietNote-Zipformer-78M-Streaming

Kaisye/VietNote-Zipformer-78M-Streaming

作者
Kaisye
任务
语音识别
下载量
0
点赞数
11
趋势分
10
许可证
cc-by-nc-sa-4.0
收录时间
2026/11/25

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: 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.

ArchitectureZipformer2, causal (size M), stateless transducer, pruned RNN-T loss
Parameters77.7M (78M)
TokensBPE 6,144, shared Vietnamese + English
Streaming640 ms chunks (32 frames), 128 frames left context
Runtimesherpa-onnx (Linux, macOS, Windows, Android, iOS, Raspberry Pi)
Trainingicefall, ~1,500 h, 45 epochs, average of 2 checkpoints
LicenseApache-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

FolderUseSize
streaming/fp32/real time, most accurate (runs the web demo)274 MB
streaming/int8/real time on phones / small CPUs83 MB
offline/fp32/whole files, ~1 point better than streaming279 MB
offline/int8/whole files, small88 MB
pytorch/pretrained.ptfine-tuning with icefall (guide)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.modeltoken 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

pip install sherpa-onnx soundfile
hf download Kaisye/VietNote-Zipformer-78M-Streaming --local-dir models --include "streaming/int8/*" --include tokens.txt
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.

SystemTypeVietMed ⭐GigaSpeech2 ⭐FLEURS+VIVOSCode-switching devEnglish words
VietNote-Zipformer-78M-Streamingstreaming13.8710.656.889.6275.5%
hynt Zipformer 30M streamingstreaming14.308.877.7312.5824.7%
Moonshine streaming tiny vistreaming19.7414.3810.5022.1020.8%
hynt Zipformer 150Moffline11.907.205.1410.8135.5%
hynt Zipformer 30Moffline12.937.406.0611.0128.9%
viet-asr (dangvansam) int8offline17.3314.7115.2116.525.0%
VietASR Zipformer 70k hoffline14.196.757.5013.2214.3%
PhoWhisper largeoffline16.74–6.0316.3130.8%
Whisper large-v3offline36.64–8.0815.2167.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.

SystemTypeCode-switching devEnglish wordsFLEURS+VIVOS
VietNote-Zipformer-78M offlineopen, CPU8.4077.3%5.32
Gemini 4 ArgonAPI, LLM8.6287.7%2.61
VietNote-Zipformer-78M-Streamingopen, CPU, streaming9.5475.6%6.45
SonioxAPI, commercial ASR10.3278.4%4.04
GPT-audioAPI, LLM11.6779.1%7.24
Whisper large-v3open, 1.5B15.0366.7%7.99
GPT-audio-miniAPI, LLM15.1571.4%8.47
Gemini 3.8 Flash (low reasoning)API, LLM16.5181.1%12.02
PhoWhisper largeopen, 1.5B17.5828.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

@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, icefall, lhotse and sherpa-onnx. The punctuation model is fine-tuned from XLM-RoBERTa base (MIT).

内容来源:Hugging Face 模型卡

在 Hugging Face 查看