Python ≥ 3.8; install deps from requirements.txt.
- Download ready-made ONNX models:
modelscope download --model zengshuishui/FunASR-nano-onnx --local_dir models
-
Edit
scripts/run.shand set your paths:fun_asr_path=/path/to/Fun-ASR-Nano-2512
-
Run:
cd scriptsbash run.sh
ONNX files will be placed in
../models/.
With downloaded or exported models, run:
bash decode.shdecode.sh is a minimal demo, using INT8/FP32 models for quick sanity check.
Run the real-time streaming ASR server:
cd streaming_fun_asrpython realtime_ws_server.pySupports INT8 models (CPU) and FP32 models (CUDA), auto-detected. Open http://localhost:8000 for the demo page.
See detailed C++ examples in sherpa-onnx: https://github.com/k2-fsa/sherpa-onnx
run.sh: one-click export (edit paths first).decode.sh: demo decode to verify models.- Project Refactoring: The project has been refactored. The original main branch has been backed up to
backup/main-2026-01-06.