Downloads · 30 days
17.4K
28% of all-time downloads
handy-computer/SenseVoiceSmall-gguf
SenseVoiceSmall-gguf is a automatic speech recognition model from handy-computer. Use it when you need speech turned into text. It is set up for transcribe.cpp. The card lists the license as other.
GGUF conversions of FunAudioLLM/SenseVoiceSmall for use with transcribe.cpp.
Downloads · 30 days
17.4K
28% of all-time downloads
All-time downloads
61.8K
Public
Repo size
6.5 GB
Likes
1
Public
Click a slice to open those files.
.gguf2.2 GB · 100%
From the Hugging Face model README
GGUF conversions of FunAudioLLM/SenseVoiceSmall for use with transcribe.cpp.
Ported from upstream commit 3eb3b4e, pinned 2026-05-06. Validated against the FunASR reference at transcribe.cpp commit f094d28 on 2026-05-06.
Offline multilingual speech-to-text in Chinese, Cantonese, English, Japanese,
and Korean. A 234M-parameter SAN-M encoder with a single CTC head over a
25,055-token SentencePiece vocabulary. Takes a 16 kHz mono WAV (capped at
30 seconds per call, per upstream's direct-inference contract) and produces
a transcript. Not a streaming model, no translation, no built-in long-form
chunking. The same CTC head also emits language-ID, simple emotion labels,
audio-event tags, and inverse-text-normalization control tags. These tags are
hidden unless --raw-tokens is passed. ITN is on by default for readable
casing, punctuation, and digits; pass --no-itn for upstream's spoken-form
output.
| Quantization | Download | Size | WER (LibriSpeech test-clean) |
|---|---|---|---|
| F32 | SenseVoiceSmall-F32.gguf | 937 MB | 3.13% |
| F16 | SenseVoiceSmall-F16.gguf | 470 MB | 3.13% |
| Q8_0 | SenseVoiceSmall-Q8_0.gguf | 253 MB | 3.13% |
| Q6_K | SenseVoiceSmall-Q6_K.gguf | 196 MB | 3.14% |
| Q5_K_M | SenseVoiceSmall-Q5_K_M.gguf | 172 MB | 3.18% |
| Q4_K_M | SenseVoiceSmall-Q4_K_M.gguf | 146 MB | 3.45% |
WER on the full LibriSpeech test-clean split (2,620 utterances). Figures without a commit were published before provenance was recorded.
Greedy CTC decoding. The publisher does not report a numerical LibriSpeech WER (the
model card publishes scores only as PNG figures), so the gate baseline is our own
FunASR 1.3.1 reference run on the same manifest: 3.13% (95% CI [2.93%, 3.34%]).
transcribe.cpp's F32 port matches that baseline within +0.002 percentage-points.
LibriSpeech is an English benchmark; SenseVoice's strongest case is Mandarin, and
AISHELL-1 (CER) is the recommended complementary check. These table values were
measured with ITN off, matching the FunASR reference; scripts/wer/run.py pins
--no-itn so the benchmark does not inherit the runtime default.
Build transcribe.cpp from source:
git clone [email protected]:handy-computer/transcribe.cpp.git
cd transcribe.cpp
cmake -B build && cmake --build build
Run on a 16 kHz mono WAV:
build/bin/transcribe-cli \
-m SenseVoiceSmall-Q8_0.gguf \
input.wav
If your audio isn't already 16 kHz mono WAV, convert it first:
ffmpeg -i input.mp3 -ar 16000 -ac 1 output.wav
See the transcribe.cpp model page for performance numbers, numerical validation, and reproduction steps.
Inherited from the base model: model-license (FunASR MODEL_LICENSE). See the upstream model card for full terms.
The section below is reproduced from FunAudioLLM/SenseVoiceSmall at commit
3eb3b4efor offline reference. The upstream card is the authoritative source.
github repo : https://github.com/FunAudioLLM/SenseVoice
SenseVoice is a speech foundation model with multiple speech understanding capabilities, including automatic speech recognition (ASR), spoken language identification (LID), speech emotion recognition (SER), and audio event detection (AED).
<img src="image/sensevoice2.png"> <div align="center"> <h4> <a href="https://fun-audio-llm.github.io/"> Homepage </a> |<a href="#What's News"> What's News </a> |<a href="#Benchmarks"> Benchmarks </a> |<a href="#Install"> Install </a> |<a href="#Usage"> Usage </a> |<a href="#Community"> Community </a> </h4>Model Zoo: modelscope, huggingface
Online Demo: modelscope demo, huggingface space
</div><a name="Highligts"></a>
SenseVoice focuses on high-accuracy multilingual speech recognition, speech emotion recognition, and audio event detection.
<a name="What's News"></a>
<a name="Benchmarks"></a>
We compared the performance of multilingual speech recognition between SenseVoice and Whisper on open-source benchmark datasets, including AISHELL-1, AISHELL-2, Wenetspeech, LibriSpeech, and Common Voice. In terms of Chinese and Cantonese recognition, the SenseVoice-Small model has advantages.
<div align="center"> <img src="image/asr_results1.png" width="400" /><img src="image/asr_results2.png" width="400" /> </div>Due to the current lack of widely-used benchmarks and methods for speech emotion recognition, we conducted evaluations across various metrics on multiple test sets and performed a comprehensive comparison with numerous results from recent benchmarks. The selected test sets encompass data in both Chinese and English, and include multiple styles such as performances, films, and natural conversations. Without finetuning on the target data, SenseVoice was able to achieve and exceed the performance of the current best speech emotion recognition models.
<div align="center"> <img src="image/ser_table.png" width="1000" /> </div>Furthermore, we compared multiple open-source speech emotion recognition models on the test sets, and the results indicate that the SenseVoice-Large model achieved the best performance on nearly all datasets, while the SenseVoice-Small model also surpassed other open-source models on the majority of the datasets.
<div align="center"> <img src="image/ser_figure.png" width="500" /> </div>Although trained exclusively on speech data, SenseVoice can still function as a standalone event detection model. We compared its performance on the environmental sound classification ESC-50 dataset against the widely used industry models BEATS and PANN. The SenseVoice model achieved commendable results on these tasks. However, due to limitations in training data and methodology, its event classification performance has some gaps compared to specialized AED models.
<div align="center"> <img src="image/aed_figure.png" width="500" /> </div>The SenseVoice-Small model deploys a non-autoregressive end-to-end architecture, resulting in extremely low inference latency. With a similar number of parameters to the Whisper-Small model, it infers more than 5 times faster than Whisper-Small and 15 times faster than Whisper-Large.
<div align="center"> <img src="image/inference.png" width="1000" /> </div>pip install -r requirements.txt
<a name="Usage"></a>
Supports input of audio in any format and of any duration.
from funasr import AutoModel
from funasr.utils.postprocess_utils import rich_transcription_postprocess
model_dir = "FunAudioLLM/SenseVoiceSmall"
model = AutoModel(
model=model_dir,
vad_model="fsmn-vad",
vad_kwargs={"max_single_segment_time": 30000},
device="cuda:0",
hub="hf",
)
# en
res = model.generate(
input=f"{model.model_path}/example/en.mp3",
cache={},
language="auto", # "zn", "en", "yue", "ja", "ko", "nospeech"
use_itn=True,
batch_size_s=60,
merge_vad=True, #
merge_length_s=15,
)
text = rich_transcription_postprocess(res[0]["text"])
print(text)
Parameter Description:
model_dir: The name of the model, or the path to the model on the local disk.vad_model: This indicates the activation of VAD (Voice Activity Detection). The purpose of VAD is to split long audio into shorter clips. In this case, the inference time includes both VAD and SenseVoice total consumption, and represents the end-to-end latency. If you wish to test the SenseVoice model's inference time separately, the VAD model can be disabled.vad_kwargs: Specifies the configurations for the VAD model. max_single_segment_time: denotes the maximum duration for audio segmentation by the vad_model, with the unit being milliseconds (ms).use_itn: Whether the output result includes punctuation and inverse text normalization.batch_size_s: Indicates the use of dynamic batching, where the total duration of audio in the batch is measured in seconds (s).merge_vad: Whether to merge short audio fragments segmented by the VAD model, with the merged length being merge_length_s, in seconds (s).If all inputs are short audios (<30s), and batch inference is needed to speed up inference efficiency, the VAD model can be removed, and batch_size can be set accordingly.
model = AutoModel(model=model_dir, device="cuda:0", hub="hf")
res = model.generate(
input=f"{model.model_path}/example/en.mp3",
cache={},
language="zh", # "zn", "en", "yue", "ja", "ko", "nospeech"
use_itn=False,
batch_size=64,
hub="hf",
)
For more usage, please refer to docs
Supports input of audio in any format, with an input duration limit of 30 seconds or less.
from model import SenseVoiceSmall
from funasr.utils.postprocess_utils import rich_transcription_postprocess
model_dir = "FunAudioLLM/SenseVoiceSmall"
m, kwargs = SenseVoiceSmall.from_pretrained(model=model_dir, device="cuda:0", hub="hf")
m.eval()
res = m.inference(
data_in=f"{kwargs['model_path']}/example/en.mp3",
language="auto", # "zn", "en", "yue", "ja", "ko", "nospeech"
use_itn=False,
**kwargs,
)
text = rich_transcription_postprocess(res[0][0]["text"])
print(text)
Ref to SenseVoice
Ref to SenseVoice
Ref to SenseVoice
python webui.py
<div align="center"><img src="image/webui.png" width="700"/> </div>
<a name="Community"></a>
If you encounter problems in use, you can directly raise Issues on the github page.
You can also scan the following DingTalk group QR code to join the community group for communication and discussion.
| FunAudioLLM | FunASR |
|---|---|
| <div align="left"><img src="image/dingding_sv.png" width="250"/> | <img src="image/dingding_funasr.png" width="250"/></div> |