Skip to main content

No project description provided

Project description

Supported functions

Speech recognition Speech synthesis
✔️ ✔️
Speaker identification Speaker diarization Speaker verification
✔️ ✔️ ✔️
Spoken Language identification Audio tagging Voice activity detection
✔️ ✔️ ✔️
Keyword spotting Add punctuation
✔️ ✔️

Supported platforms

Architecture Android iOS Windows macOS linux
x64 ✔️ ✔️ ✔️ ✔️
x86 ✔️ ✔️
arm64 ✔️ ✔️ ✔️ ✔️ ✔️
arm32 ✔️ ✔️
riscv64 ✔️

Supported programming languages

1. C++ 2. C 3. Python 4. JavaScript
✔️ ✔️ ✔️ ✔️
5. Java 6. C# 7. Kotlin 8. Swift
✔️ ✔️ ✔️ ✔️
9. Go 10. Dart 11. Rust 12. Pascal
✔️ ✔️ ✔️ ✔️

For Rust support, please see sherpa-rs

It also supports WebAssembly.

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)
  • Keyword spotting

on the following platforms and operating systems:

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. All you need is a browser.
Description URL
Speaker diarization Click me
Speech recognition Click me
Speech recognition with Whisper Click me
Speech synthesis Click me
Generate subtitles Click me
Audio tagging Click me
Spoken language identification with Whisper Click me

We also have spaces built using WebAssembly. They are listed below:

Description Huggingface space ModelScope space
Voice activity detection with silero-vad Click me 地址
Real-time speech recognition (Chinese + English) with Zipformer Click me 地址
Real-time speech recognition (Chinese + English) with Paraformer Click me 地址
Real-time speech recognition (Chinese + English + Cantonese) with Paraformer-large Click me 地址
Real-time speech recognition (English) Click me 地址
VAD + speech recognition (Chinese + English + Korean + Japanese + Cantonese) with SenseVoice Click me 地址
VAD + speech recognition (English) with Whisper tiny.en Click me 地址
VAD + speech recognition (English) with Zipformer trained with GigaSpeech Click me 地址
VAD + speech recognition (Chinese) with Zipformer trained with WenetSpeech Click me 地址
VAD + speech recognition (Japanese) with Zipformer trained with ReazonSpeech Click me 地址
VAD + speech recognition (Thai) with Zipformer trained with GigaSpeech2 Click me 地址
VAD + speech recognition (Chinese 多种方言) with a TeleSpeech-ASR CTC model Click me 地址
VAD + speech recognition (English + Chinese, 及多种中文方言) with Paraformer-large Click me 地址
VAD + speech recognition (English + Chinese, 及多种中文方言) with Paraformer-small Click me 地址
Speech synthesis (English) Click me 地址
Speech synthesis (German) Click me 地址
Speaker diarization Click me 地址

Links for pre-built Android APKs

You can find pre-built Android APKs for this repository in the following table
Description URL 中国用户
Speaker diarization Address 点此
Streaming speech recognition Address 点此
Text-to-speech Address 点此
Voice activity detection (VAD) Address 点此
VAD + non-streaming speech recognition Address 点此
Two-pass speech recognition Address 点此
Audio tagging Address 点此
Audio tagging (WearOS) Address 点此
Speaker identification Address 点此
Spoken language identification Address 点此
Keyword spotting Address 点此

Links for pre-built Flutter APPs

Real-time speech recognition

Description URL 中国用户
Streaming speech recognition Address 点此

Text-to-speech

Description URL 中国用户
Android (arm64-v8a, armeabi-v7a, x86_64) Address 点此
Linux (x64) Address 点此
macOS (x64) Address 点此
macOS (arm64) Address 点此
Windows (x64) Address 点此

Note: You need to build from source for iOS.

Links for pre-built Lazarus APPs

Generating subtitles

Description URL 中国用户
Generate subtitles (生成字幕) Address 点此

Links for pre-trained models

Description URL
Speech recognition (speech to text, ASR) Address
Text-to-speech (TTS) Address
VAD Address
Keyword spotting Address
Audio tagging Address
Speaker identification (Speaker ID) Address
Spoken language identification (Language ID) See multi-lingual Whisper ASR models from Speech recognition
Punctuation Address
Speaker segmentation Address

Useful links

How to reach us

Please see https://k2-fsa.github.io/sherpa/social-groups.html for 新一代 Kaldi 微信交流群 and QQ 交流群.

Projects using sherpa-onnx

voiceapi

Streaming ASR and TTS based on FastAPI

It shows how to use the ASR and TTS Python APIs with FastAPI.

腾讯会议摸鱼工具 TMSpeech

Uses streaming ASR in C# with graphical user interface.

Video demo in Chinese: 【开源】Windows实时字幕软件(网课/开会必备)

lol互动助手

It uses the JavaScript API of sherpa-onnx along with Electron

Video demo in Chinese: 爆了!炫神教你开打字挂!真正影响胜率的英雄联盟工具!英雄联盟的最后一块拼图!和游戏中的每个人无障碍沟通!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sherpa-onnx-1.10.29.tar.gz (426.1 kB view hashes)

Uploaded Source

Built Distributions

sherpa_onnx-1.10.29-cp312-cp312-win_amd64.whl (21.3 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

sherpa_onnx-1.10.29-cp312-cp312-win32.whl (18.8 MB view hashes)

Uploaded CPython 3.12 Windows x86

sherpa_onnx-1.10.29-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.3 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

sherpa_onnx-1.10.29-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (19.6 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

sherpa_onnx-1.10.29-cp312-cp312-macosx_11_0_x86_64.whl (18.6 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ x86-64

sherpa_onnx-1.10.29-cp312-cp312-macosx_11_0_universal2.whl (34.0 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ universal2 (ARM64, x86-64)

sherpa_onnx-1.10.29-cp312-cp312-macosx_11_0_arm64.whl (16.4 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

sherpa_onnx-1.10.29-cp311-cp311-win_amd64.whl (21.3 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

sherpa_onnx-1.10.29-cp311-cp311-win32.whl (18.8 MB view hashes)

Uploaded CPython 3.11 Windows x86

sherpa_onnx-1.10.29-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

sherpa_onnx-1.10.29-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (19.6 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

sherpa_onnx-1.10.29-cp311-cp311-macosx_11_0_x86_64.whl (18.6 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ x86-64

sherpa_onnx-1.10.29-cp311-cp311-macosx_11_0_universal2.whl (34.0 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ universal2 (ARM64, x86-64)

sherpa_onnx-1.10.29-cp311-cp311-macosx_11_0_arm64.whl (16.4 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

sherpa_onnx-1.10.29-cp311-cp311-linux_armv7l.whl (14.3 MB view hashes)

Uploaded CPython 3.11

sherpa_onnx-1.10.29-cp310-cp310-win_amd64.whl (21.3 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

sherpa_onnx-1.10.29-cp310-cp310-win32.whl (18.8 MB view hashes)

Uploaded CPython 3.10 Windows x86

sherpa_onnx-1.10.29-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

sherpa_onnx-1.10.29-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (19.6 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

sherpa_onnx-1.10.29-cp310-cp310-macosx_11_0_x86_64.whl (18.6 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ x86-64

sherpa_onnx-1.10.29-cp310-cp310-macosx_11_0_universal2.whl (34.0 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ universal2 (ARM64, x86-64)

sherpa_onnx-1.10.29-cp310-cp310-macosx_11_0_arm64.whl (16.4 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

sherpa_onnx-1.10.29-cp310-cp310-linux_armv7l.whl (14.3 MB view hashes)

Uploaded CPython 3.10

sherpa_onnx-1.10.29-cp39-cp39-win_amd64.whl (21.3 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

sherpa_onnx-1.10.29-cp39-cp39-win32.whl (18.8 MB view hashes)

Uploaded CPython 3.9 Windows x86

sherpa_onnx-1.10.29-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

sherpa_onnx-1.10.29-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (19.6 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

sherpa_onnx-1.10.29-cp39-cp39-macosx_11_0_x86_64.whl (18.6 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ x86-64

sherpa_onnx-1.10.29-cp39-cp39-macosx_11_0_universal2.whl (34.0 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ universal2 (ARM64, x86-64)

sherpa_onnx-1.10.29-cp39-cp39-macosx_11_0_arm64.whl (16.4 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

sherpa_onnx-1.10.29-cp39-cp39-linux_armv7l.whl (14.3 MB view hashes)

Uploaded CPython 3.9

sherpa_onnx-1.10.29-cp38-cp38-win_amd64.whl (21.3 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

sherpa_onnx-1.10.29-cp38-cp38-win32.whl (18.8 MB view hashes)

Uploaded CPython 3.8 Windows x86

sherpa_onnx-1.10.29-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

sherpa_onnx-1.10.29-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (19.6 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

sherpa_onnx-1.10.29-cp38-cp38-macosx_11_0_x86_64.whl (18.6 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ x86-64

sherpa_onnx-1.10.29-cp38-cp38-macosx_11_0_universal2.whl (34.0 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ universal2 (ARM64, x86-64)

sherpa_onnx-1.10.29-cp38-cp38-macosx_11_0_arm64.whl (16.4 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

sherpa_onnx-1.10.29-cp38-cp38-linux_armv7l.whl (14.3 MB view hashes)

Uploaded CPython 3.8

sherpa_onnx-1.10.29-cp37-cp37m-win_amd64.whl (21.3 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

sherpa_onnx-1.10.29-cp37-cp37m-win32.whl (18.8 MB view hashes)

Uploaded CPython 3.7m Windows x86

sherpa_onnx-1.10.29-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.3 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

sherpa_onnx-1.10.29-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (19.6 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

sherpa_onnx-1.10.29-cp37-cp37m-macosx_11_0_x86_64.whl (18.6 MB view hashes)

Uploaded CPython 3.7m macOS 11.0+ x86-64

sherpa_onnx-1.10.29-cp37-cp37m-linux_armv7l.whl (14.4 MB view hashes)

Uploaded CPython 3.7m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page