SenseVoice is a speech foundation model focused on high-accuracy multilingual speech recognition, speech emotion recognition, and audio event detection. Its released SenseVoiceSmall checkpoint supports automatic speech recognition (ASR) and language identification (LID) for Chinese, Cantonese, English, Japanese, and Korean, while also being able to output emotion labels and audio event labels.
Main capabilities
- Multilingual speech recognition: On open-source benchmark datasets such as AISHELL-1, AISHELL-2, Wenetspeech, LibriSpeech, and Common Voice, SenseVoice was compared with Whisper, and the SenseVoice-Small model has advantages in Chinese and Cantonese recognition.
- Speech emotion recognition: Without fine-tuning on the target data, SenseVoice can achieve and surpass the performance of current state-of-the-art speech emotion recognition models. The test set covers Chinese and English data, including various styles such as performances, movies, and natural conversations.
- Audio event detection: Although trained only on speech data, SenseVoice can still be used as a standalone event detection model. On the environmental sound classification ESC-50 dataset, it achieved good results compared with models such as BEATS and PANN, but there is still a certain gap compared with dedicated AED models.
- Efficient inference: SenseVoiceSmall uses a non-autoregressive end-to-end framework, and with a similar number of parameters, it runs more than 5 times faster than Whisper-Small and more than 15 times faster than Whisper-Large.
- Convenient fine-tuning: Fine-tuning scripts and strategies are provided to help users address long-tail sample issues according to business scenarios.
- Service deployment: A service deployment pipeline is provided, supporting multiple concurrent requests, with client languages including Python, C++, HTML, Java, C#, and more.
Usage
- Installation: For the current deployment path, it is recommended to install funasr==1.4.14 to use the SenseVoice Python, OpenAI-compatible service, and container workflows. The SenseVoiceSmall example and the composable FunASR speaker diarization path require funasr>=1.3.26. If this repository was previously installed, run pip install -U "funasr>=1.3.26" before retrying the demo.
- Direct inference: Supports audio input in any format, with input duration limited to 30 seconds or less.
- Long audioprocessing: Long recordings need to be segmented first before being fed into the encoder; the example uses FSMN-VAD for segmentation. If VAD is not used, long_audio_no_vad.py can be used to process hour-level recordings through bounded overlapping windows, avoiding a single unbounded GPU allocation.
- Speaker diarization: Through FunASR, SenseVoiceSmall is combined with independent FSMN-VAD, CAM++, and punctuation models. CAM++ provides speaker labels; the SenseVoiceSmall checkpoint itself does not output speaker labels.
- Export and testing: Supports exporting ONNX models and Libtorch models to the original model directory.
- CPU/edge operation: SenseVoice can be run as a single self-contained binary via llama.cpp/GGUF, with built-in FSMN-VAD, requiring no Python at runtime.
- FastAPI deployment and Docker: Supports building and running with Docker, simplifying setup and ensuring reproducibility, and supports CPU and GPU inference. The container listens on port 50000; after it is healthy, access http://127.0.0.1:50000/docs。
Applicable Scenarios Suitable for scenarios requiring multilingual speech recognition, sentiment analysis, and audio event detection, such as meeting transcription, customer service quality inspection, content moderation, and voice interaction. Also suitable for deploying offline speech recognition on CPU or edge devices.
Limitations
- The released SenseVoiceSmall checkpoint only supports Chinese, Cantonese, English, Japanese, and Korean; although the broader SenseVoice work reports support for over 50 languages, this is not within the scope of that checkpoint.
- Speaker diarization is not an output of the SenseVoiceSmall checkpoint and requires combining other models to achieve.
- There is a gap in audio event detection performance compared with dedicated AED models.
- Long audio needs to be processed in segments, and fixed boundaries may affect recognition results.
- Direct inference input duration is limited to 30 seconds or less.
- Some deployment methods (such as the ghcr.io container package) are currently private, and anonymous pulls return HTTP 401.
- The model weight distribution method differs from the source code license; the source code uses the MIT License.