int8 ONNX export of
FunAudioLLM/Fun-ASR-MLT-Nano-2512
(≈0.8B, SenseVoice encoder + Qwen3-0.6B LLM decoder), packaged for
sherpa-onnx's
OfflineRecognizer.from_funasr_nano.
Runs on CPU with no PyTorch/transformers at inference. Covers the 31 languages of the
multilingual Fun-ASR-Nano, including Chinese, English, Vietnamese, Indonesian, Thai, Malay,
Korean, and more.
Total ≈ 994 MB.
1import sherpa_onnx # pip install sherpa-onnx>=1.13.3
2
3rec = sherpa_onnx.OfflineRecognizer.from_funasr_nano(
4 encoder_adaptor="encoder_adaptor.int8.onnx",
5 llm="llm.int8.onnx",
6 embedding="embedding.int8.onnx",
7 tokenizer="tokenizer",
8 num_threads=4,
9 sample_rate=16000,
10 provider="cpu",
11 language="", # "" = auto language id; or a Chinese language name, e.g. 英文 / 印尼语 / 越南语
12 max_new_tokens=512,
13)
14s = rec.create_stream()
15s.accept_waveform(16000, audio_float32_mono_16k) # numpy float32 in [-1, 1]
16rec.decode_stream(s)
17print(s.result.text)
Apache-2.0, inherited from the base model. See the LICENSE and NOTICE files in this repo.
This is a redistributed derivative work — attribution above.