# sherpa-onnx

> Speech-to-text, text-to-speech, speaker diarization, speech enhancement, source separation, and VAD using next-gen Kaldi with onnxruntime without Internet…

- Type: agent or tool
- Field: Audio & Video
- Repository: https://github.com/k2-fsa/sherpa-onnx
- GitHub stars: 16205
- Licence: Apache-2.0
- Language: C++
- Last push: 2026-11-24
- Page: https://imutechz.in/agents/sherpa-onnx

## What it is
sherpa-onnx runs speech functions locally using next-gen Kaldi with onnxruntime, without needing an internet connection. It covers speech-to-text (streaming and non-streaming), text-to-speech, speaker diarization, identification and verification, language identification, audio tagging, VAD, speech enhancement, keyword spotting, source separation and forced alignment. It targets developers building on-device audio features across desktop, mobile, embedded and web platforms.

## Features
- Speech-to-text with streaming and non-streaming modes
- Text-to-speech and speaker diarization, identification and verification
- Voice activity detection, speech enhancement and source separation
- Keyword spotting, audio tagging and spoken language identification
- Forced alignment for word-level timestamps
- APIs for C++, C, Python, Go, C , Java, Kotlin, JavaScript, Swift, Rust, Dart and Object Pascal

## Best for
- On-device speech recognition without internet access
- Mobile and embedded audio apps on Android, iOS, HarmonyOS and Linux
- Browser-based speech features via WebAssembly
- Speaker diarization and verification pipelines

## Pros
- Runs all listed functions locally without an internet connection
- Supports many platforms including Android, iOS, Windows, macOS, Linux, HarmonyOS and WebAssembly
- Provides bindings for twelve programming languages
- Supports several NPUs including Rockchip, Qualcomm, Ascend, Axera and Intel

## Cons
- Requires onnxruntime as the inference backend
- Some functions depend on specific external models such as silero-vad, gtcrn, spleeter or UVR

Tags: speech-recognition, text-to-speech, onnxruntime, on-device, speaker-diarization, voice-activity-detection, wasm, kaldi
