skillfed

sherpa-onnx-core

Core shared libraries for sherpa-onnx

sherpa-onnx-core v1.13.5 526.4K downloads/30d#6,176 on PyPI14,181
Permissive license Apache-2.0 Active released

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-core

uv

uv add sherpa-onnx-core

poetry

poetry add sherpa-onnx-core

Installing 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

Operating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3Topic :: Scientific/Engineering :: Artificial Intelligence

Tags

speech recognition librarytext to speech offlinespeaker identificationaudio processing onnxvoice activity detectionkeyword spottingspeech enhancement
speech-processingedge-inferenceoffline-ai

More Artificial Intelligence packages