Home/Speech & Audio/sherpa-onnx
sherpa-onnx logo

sherpa-onnx

k2-fsa/sherpa-onnx

Speech-to-text and related audio processing tools using ONNX with cross-platform support

GraphCanon updated 3w · GitHub synced 3w

14k stars1.6k forksLast push 3w C++ Apache-2.0

Decision brief

sherpa-onnx offers local speech-to-text processing across multiple platforms including embedded systems with NPUs, supporting wide programming languages.

Good fit when

  • When you need to deploy speech recognition or synthesis on platforms such as Raspberry Pi, RISC-V, and with NPUs like Rockchip, Axera, Ascend
  • For applications that require processing on a variety of embedded systems, mobile OSes without internet connectivity

Avoid when

  • If your project strictly requires real-time web service interaction or server-based speech-to-text solutions
  • When the target environment lacks support for ONNX runtime and specific NPUs integrated within sherpa-onnx

Observed Jul 16, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Very active (0d since push)
As of 3w
Provenance
Not a fork · Organization account
As of 3w
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

git clone https://github.com/k2-fsa/sherpa-onnx

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

A repository for speech-to-text, text-to-speech, speaker diarization, speech enhancement, source separation, VAD functions utilizing modern Kaldi and onnxruntime. Supports a wide array of platforms including embedded systems, mobile OSes like Android and iOS, and various architectures suitable for edge devices, with NPUs integration.

Capability facts

Languages
c++

Source: github.language · Jul 29, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Node.js runtimeNode.js

Source: README excerpt (regex_v1, Jul 29, 2026)

- NodeJS
Source link
Python runtimePython

Source: README excerpt (regex_v1, Jul 29, 2026)

| 1. C++ | 2. C | 3. Python | 4. JavaScript |
Source link

Tags

README

Supported functions

Speech recognition[Speech synthesis][tts-url][Source separation][ss-url]
✔️✔️✔️
Speaker identification[Speaker diarization][sd-url]Speaker verification
✔️✔️✔️
[Spoken Language identification][slid-url][Audio tagging][at-url][Voice activity detection][vad-url]
✔️✔️✔️
[Keyword spotting][kws-url][Add punctuation][punct-url][Speech enhancement][se-url]
✔️✔️✔️

Supported platforms

ArchitectureAndroidiOSWindowsmacOSlinuxHarmonyOS
x64✔️✔️✔️✔️✔️
x86✔️✔️
arm64✔️✔️✔️✔️✔️✔️
arm32✔️✔️✔️
riscv64✔️

Supported programming languages

1. C++2. C3. Python4. JavaScript
✔️✔️✔️✔️
5. Java6. C#7. Kotlin8. Swift
✔️✔️✔️✔️
9. Go10. Dart11. Rust12. Pascal
✔️✔️✔️✔️

It also supports WebAssembly.

Supported NPUs

[1. Rockchip NPU (RKNN)][rknpu-doc][2. Qualcomm NPU (QNN)][qnn-doc][3. Ascend NPU][ascend-doc]
✔️✔️✔️
[4. Axera NPU][axera-npu]
✔️

Join our discord

Introduction

This repository supports running the following functions locally

  • Speech-to-text (i.e., ASR); both streaming and non-streaming are supported
  • Text-to-speech (i.e., TTS)
  • Speaker diarization
  • Speaker identification
  • Speaker verification
  • Spoken language identification
  • Audio tagging
  • VAD (e.g., [silero-vad][silero-vad])
  • Speech enhancement (e.g., [gtcrn][gtcrn], DPDFNet)
  • Keyword spotting
  • Source separation (e.g., [spleeter][spleeter], [UVR][UVR])

on the following platforms and operating systems:

  • x86, x86_64, 32-bit ARM, 64-bit ARM (arm64, aarch64), RISC-V (riscv64), RK NPU, Ascend NPU
  • Linux, macOS, Windows, openKylin
  • Android, WearOS
  • iOS
  • HarmonyOS
  • NodeJS
  • WebAssembly
  • [NVIDIA Jetson Orin NX][NVIDIA Jetson Orin NX] (Support running on both CPU and GPU)
  • [NVIDIA Jetson Nano B01][NVIDIA Jetson Nano B01] (Support running on both CPU and GPU)
  • [Raspberry Pi][Raspberry Pi]
  • [RV1126][RV1126]
  • [LicheePi4A][LicheePi4A]
  • [VisionFive 2][VisionFive 2]
  • [旭日X3派][旭日X3派]
  • [爱芯派][爱芯派]
  • [RK3588][RK3588]
  • [SpacemiT-K1][SpacemiT-K1]
  • [SpacemiT-K3][SpacemiT-K3]
  • etc

with the following APIs

  • C++, C, Python, Go, C#
  • Java, Kotlin, JavaScript
  • Swift, Rust
  • Dart, Object Pascal

Links for Huggingface Spaces

You can visit the following Huggingface spaces to try sherpa-onnx without installing anything

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.