sherpa-onnx-core
Core shared libraries for sherpa-onnx
What it is and what it does
sherpa-onnx-core is a Python wrapper around pre-compiled ONNX runtime binaries for running speech and audio AI models locally. It bundles the core C++ libraries needed to execute speech recognition (streaming and non-streaming), text-to-speech, speaker diarization, voice activity detection, keyword spotting, audio tagging, and speech enhancement—all without external service dependencies.
The package targets embedded and edge devices as well as desktop environments, supporting x86, ARM (32 and 64-bit), RISC-V, and specialized NPUs (Rockchip, Qualcomm, Ascend). It has no Python runtime dependencies, only platform-specific binary wheels, making it lightweight for deployment. Users typically pair it with pre-trained ONNX models from the sherpa-onnx ecosystem to perform inference.
Use it for:
- Build offline speech-to-text applications on mobile, embedded Linux, or desktop without cloud API calls
- Implement real-time voice activity detection and keyword spotting for always-on voice interfaces
- Deploy speaker identification or diarization in privacy-sensitive environments where audio cannot leave the device
- Add text-to-speech synthesis to applications running on Raspberry Pi, Jetson, or other edge hardware
- Integrate speech enhancement or source separation into audio processing pipelines on resource-constrained devices
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
sherpa-onnx-core provides pre-built ONNX runtime binaries for speech recognition, synthesis, speaker identification, audio tagging, and other audio processing tasks across multiple platforms and architectures.
Yes, if you need local, offline speech or audio AI inference. The package is actively maintained, has no Python dependencies, supports a wide range of platforms and architectures, and carries a permissive license. Install friction is moderate due to platform-specific wheels, but pre-built binaries eliminate the need to compile ONNX Runtime yourself. Verify that your target platform is in the supported list before committing.
Install
sherpa-onnx-core on PyPI
pip
pip install sherpa-onnx-coreuv
uv add sherpa-onnx-corepoetry
poetry add sherpa-onnx-coreInstalling sherpa-onnx-core
Before you install
Medium install friction due to platform-specific wheels (9 variants covering macOS, Linux, Windows, and ARM architectures). Active maintenance with recent releases (3 days since last version); repository shows strong community engagement with 14181 stars.
License in practice
Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install sherpa-onnx-core
import sherpa_onnx
# Use sherpa_onnx APIs for speech recognition, TTS, or other audio tasks
Requires a compatible platform wheel; installation may fail on unsupported architectures (e.g., 32-bit x86 on macOS, or RISC-V on Windows).
Verify before relying
- Whether Python version constraints exist beyond what the fact sheet specifies
- Whether pre-trained models are bundled or must be downloaded separately
- Performance characteristics and latency on different hardware targets
Package facts
| License | Apache-2.0 (permissive) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 526,448/month — #6,176 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sherpa_onnx_core-1.13.5-py3-none-macosx_10_15_universal2.whl; sherpa_onnx_core-1.13.5-py3-none-macosx_10_15_x86_64.whl; sherpa_onnx_core-1.13.5-py3-none-macosx_11_0_arm64.whl; sherpa_onnx_core-1.13.5-py3-none-manylinux2014_aarch64.whl; sherpa_onnx_core-1.13.5-py3-none-manylinux2014_x86_64.whl; sherpa_onnx_core-1.13.5-py3-none-manylinux_2_35_armv7l.whl; sherpa_onnx_core-1.13.5-py3-none-win32.whl; sherpa_onnx_core-1.13.5-py3-none-win_amd64.whl; sherpa_onnx_core-1.13.5-py3-none-win_arm64.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
sherpa-onnxSherpa-onnx runs speech recognition,…
permissive · top 15,000 on PyPI
onnx-asrAutomatic Speech Recognition using ONNX models…
permissive · top 15,000 on PyPI
funasrFunASR is a speech recognition toolkit that…
permissive · top 15,000 on PyPI
pyannote-coreProvides data structures for representing and…
unclear · top 5,000 on PyPI
pocketsphinxPocketSphinx provides Python bindings for…
permissive · top 15,000 on PyPI
SpeechRecognitionPerforms speech recognition and transcription…
permissive · top 5,000 on PyPI
speechbrainSpeechBrain is a PyTorch-based toolkit for…
permissive · top 5,000 on PyPI
pyannoteai-sdkClient library for pyannoteAI's speaker…
unclear · top 5,000 on PyPI
panns-inferenceProvides pretrained neural network models for…
permissive · top 15,000 on PyPI
silero-vadSilero VAD detects speech activity in audio…
permissive · top 5,000 on PyPI