0

Speech Understanding with SenseVoiceSmall and OpenVINO

SenseVoiceSmall is a non-autoregressive speech understanding model from FunAudioLLM. One encoder/CTC model produces a transcript, language identification and emotion/audio-event tags. The released Small checkpoint supports Mandarin, Cantonese, En

Example · مثال

Content

Speech Understanding with SenseVoiceSmall and OpenVINO

SenseVoiceSmall is a non-autoregressive speech understanding model from FunAudioLLM. One encoder/CTC model produces a transcript, language identification and emotion/audio-event tags. The released Small checkpoint supports Mandarin, Cantonese, English, Japanese and Korean.

This tutorial exports the model with the Optimum Intel Python API and runs it with OpenVINO GenAI ASRPipeline. The OVModelForSpeechSeq2Seq export entry point also handles the SenseVoice CTC architecture. See the original repository and paper.

This notebook offers CPU/GPU inference with FP16 or INT8 weights; NPU and INT4 are not included.

Notebook contents

The tutorial consists of the following steps:

  1. Install prerequisites
  2. Export a revision-pinned model to FP16 or compress its weights to INT8 with NNCF
  3. Transcribe short recordings and inspect language, emotion and event predictions
  4. Select a language and compare inverse text normalization (ITN) settings
  5. Transcribe two audio inputs in one batch
  6. Launch an optional Gradio demo for uploaded files or microphone recordings

Recordings are limited to 30 seconds. Long-audio segmentation, translation, diarization and timestamps are outside this example's scope. Audio examples come from a small LibriSpeech fixture, derived from LibriSpeech (CC BY 4.0). Emotion/event tags are model predictions, not a classification accuracy assessment.

Model License

The checkpoint uses the custom FunASR model license, not Apache-2.0. Review its terms before use. Export explicitly enables trusted remote code for a fixed source revision.

Installation Instructions

This is a self-contained example that relies solely on its own code.

The notebook targets OpenVINO 2026.5. It installs OpenVINO/Tokenizers/GenAI >=2026.5.0 packages from PyPI and pins Optimum Intel to commit 883580d3 (including PR 2118, merged after Optimum Intel 2.3.0) for SenseVoice export, ASR, metadata, batching and GPU activation scaling support. It uses compatible version ranges rather than fixing all package versions. Transformers is limited to 4.57.x, Gradio to 5.x, and matching CPU PyTorch/TorchAudio 2.8.x wheels are used for export. Dependencies are resolved together to preserve compatibility constraints. OpenVINO GPU inference does not require PyTorch GPU wheels.

The protobuf lower bound keeps its runtime compatible with the generated sentencepiece model definitions used for detokenizer conversion.

Inference uses the device's default runtime precision. Optimum Intel sets ACTIVATIONS_SCALE_FACTOR=4.0 during export to prevent FP16 activation overflow on GPU. The notebook uses a new asf4 export subdirectory so older IRs without this setting are not reused; upgrading the package alone does not update an existing IR. Weight compression and runtime inference precision are separate settings.

The source checkpoint is approximately 0.94 GB, plus exported models and installed packages. A microphone is optional; file uploads work without one. Standard audio formats supported by SoundFile do not require a separate system FFmpeg installation.

We recommend running the notebook in a virtual environment. You only need a Jupyter server to start. For details, please refer to the [Installation Guide](../../README.md).

Source and license

Source
Intel OpenVINO Notebooks
Original
openvinotoolkit/openvino_notebooks/notebooks/sensevoice-small
License
Apache-2.0