QwenAudio/Fun-ASR
Speech recognition weights with GGUF edge inference and vLLM streaming
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Fun-ASR is a speech recognition weight family with separate execution paths. On the Python path, the audio encoder feeds a language-model decoder. In the composed FunASR pipeline, FSMN-VAD splits long recordings before decoding, and a trained CTC branch can align recognized characters. The repository exposes direct inference through model.py, with ctc.py and decode.py alongside it. Its manifest specifies torch>=2.9.0, torchaudio>=2.9.0, transformers>=4.51.3, and funasr>=1.3.26; the separate native Transformers quickstart pins Transformers 5.17.0 and requires neither FunASR nor remote Python code.
For serving, AutoModelVLLM handles offline batches, FunASRNanoStreamingVLLM exposes a streaming SDK, and serve_realtime_ws.py provides a WebSocket entry point. Under runtime/llama.cpp/, the GGUF path loads separate encoder and decoder artifacts and can run FSMN-VAD in the same process. These paths share a model family, not a uniform API or feature set.
Key Capabilities & Differentiators
Nano-2512 covers Chinese, English, Japanese, and Chinese dialects and accents. The separate 800M MLT-Nano-2512 covers 31 languages, with an emphasis on East and Southeast Asia. The FunASR path exposes hotwords and inverse text normalization. Neither Nano checkpoint emits speaker labels natively: the composed pipeline uses FSMN-VAD to segment audio, CAM++ to assign speakers, and CT-Punc to restore punctuation. Its sentence start and end times are VAD boundaries, not character alignments.
Character timestamps depend on the exact artifact: the ModelScope Nano-2512 checkpoint contains trained CTC weights; the identified Hugging Face FunASR revision 272c57b82523ada6fd87095e955f8e29100979ab lacks them. With the current model.py and FunASR 1.3.26 or newer, that older artifact still transcribes but omits timestamps. On 184 files totaling 11,541 seconds, vLLM took 34 seconds at 8.20% CER versus native PyTorch's 550 seconds at 8.06% CER. This measures offline batch throughput, not live-session latency.
Trade-offs & Limitations
Fun-ASR-Nano scored 1.80% WER on AIShell1 versus Whisper-large-v3 at 4.72%, but the gap was smaller on Fleurs-en: 5.96% versus 6.23%. These results make Nano a candidate for Chinese-heavy workloads, not a universal winner or a comparison with a hosted Whisper endpoint. A managed Whisper API reduces model-serving work; self-hosting Fun-ASR gives operators control over audio handling, segmentation, and serving, but adds responsibility for checkpoint compatibility, compute sizing, and runtime updates.
The GGUF CLI has a small runtime dependency footprint, but benchmark CPU speed on the intended device and do not assume parity with the Python paths for timestamps, diarization, or API behavior. For GPU deployments, size VRAM and concurrency against your selected checkpoint and actual audio lengths rather than extrapolating from the published batch run. The repository is Apache-2.0; verify the terms of separately downloaded weights and auxiliary models before commercial redistribution.
Hardware & Deployment Guide
For CPU and edge deployments, start with llama-funasr-cli and the Nano assets fetched by runtime/llama.cpp/download-funasr-model.sh: encoder and decoder GGUF files plus a separate FSMN-VAD GGUF. The self-contained binary needs no Python at runtime. For application integration, the pinned native Transformers example runs on CPU; the FunASR example uses cuda:0 and enables custom model code with remote_code="./model.py". For GPU batch work, test batch_size_s in FunASR before adding vLLM. Pre-segment long recordings for AutoModelVLLM, whose single-pass decoding can truncate long inputs.
For live clients, integrate through serve_realtime_ws.py; for local process integration, the macOS arm64 v0.1.10 release adds --stream and --lang, reading s16le PCM from stdin and emitting LOCKED, PARTIAL, and DONE. Earlier releases added Vulkan and Windows CUDA packages in v0.1.9, while v0.2.1 fixed Vulkan device selection involving integrated GPUs. Pin both the checkpoint revision and platform-specific runtime build, and verify streaming and timestamp behavior on the exact deployment combination.
Fun-ASR-Nano-2512-hf loads through Transformers 5.17.0 with trust_remote_code=False.model.py, incomplete CTC weights yield text without timestamps rather than unreliable alignments.LOCKED, PARTIAL, and DONE events.Self-hosted Chinese and dialect transcription, multilingual workloads validated on MLT-Nano, and teams choosing between an offline CPU CLI and GPU batch or streaming service.
You need one checkpoint to return both speaker labels and character timestamps across every runtime, or you prefer a managed API over operating model weights and inference infrastructure.
Quick Start & Installation
git clone https://github.com/QwenAudio/Fun-ASR.git cd Fun-ASR pip install -r requirements.txt
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| Fun-ASR ★ | 1.6k | +7 | C | Apache-2.0 | Speech recognition weights with GGUF edge inference and vLLM streaming |
| whisperX | 26.5k | +677 | Python | BSD-2-Clause | Batched Whisper with forced alignment for word timings and optional speaker labe |
| sherpa-onnx | 16.4k | +136 | C++ | Apache-2.0 | C++ and ONNX Runtime SDK for offline speech and real-time transcription |
| moonshine | 11.7k | +48 | C++ | — | On-device C++ SDK for live transcription, intent recognition, and speech synthes |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/QwenAudio/Fun-ASR.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about Fun-ASR
Which integration should I use for text, timestamps, and speaker labels?
hub="ms"). For speaker attribution, compose Nano with FSMN-VAD and CAM++; the resulting segment boundaries are not character timestamps.Do I need a GPU, and how much VRAM should I provision?
gpu_memory_utilization and tensor_parallel_size, but neither provides a sizing guarantee.Can I use Fun-ASR commercially and self-host it?
When should I choose Fun-ASR over a managed Whisper API?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy