#text-to-speech #embedding #diarization #sherpa

sys sherpa-rs-sys

Rust bindings to https://github.com/k2-fsa/sherpa-onnx

40 releases

0.6.8 Oct 5, 2025
0.6.6 Feb 25, 2025
0.6.1 Dec 25, 2024
0.5.1 Oct 25, 2024
0.1.7-beta.0 Jul 13, 2024

#1300 in Audio

Download history 128/week @ 2025-09-26 431/week @ 2025-10-03 308/week @ 2025-10-10 257/week @ 2025-10-17 246/week @ 2025-10-24 347/week @ 2025-10-31 355/week @ 2025-11-07 228/week @ 2025-11-14 324/week @ 2025-11-21 303/week @ 2025-11-28 184/week @ 2025-12-05 293/week @ 2025-12-12 134/week @ 2025-12-19 105/week @ 2025-12-26 188/week @ 2026-01-02 235/week @ 2026-01-09

707 downloads per month
Used in 3 crates

MIT license

3MB
70K SLoC

C++ 41K SLoC // 0.0% comments Kotlin 14K SLoC // 0.1% comments Dart 4.5K SLoC // 0.0% comments Java 4.5K SLoC // 0.0% comments C 3K SLoC // 0.2% comments Batch 1K SLoC Rust 683 SLoC // 0.1% comments Prolog 306 SLoC Python 162 SLoC // 0.2% comments TypeScript 68 SLoC Shell 38 SLoC // 0.1% comments Forge Config 2 SLoC

Contains (JAR file, 60KB) gradle-wrapper.jar, (JAR file, 60KB) gradle-wrapper.jar, (JAR file, 60KB) gradle-wrapper.jar, (JAR file, 60KB) gradle-wrapper.jar, (JAR file, 60KB) gradle-wrapper.jar, (JAR file, 60KB) gradle-wrapper.jar and 11 more.

sherpa-rs

Crates License

Rust bindings to sherpa-onnx

Features

  • Spoken language detection
  • Speaker embedding (labeling)
  • Speaker diarization
  • Speech to text
  • Text to speech
  • Text punctuation
  • Voice activity detection
  • Audio tagging
  • Keyword spotting

Supported Platforms

  • Windows
  • Linux
  • macOS
  • Android
  • IOS

Install

cargo add sherpa-rs

Build

Please see BUILDING.md.

Feature flags

  • cuda: enable CUDA support
  • directml: enable DirectML support
  • tts: enable TTS
  • download-binaries: use prebuilt sherpa-onnx libraries for faster builds. cached.
  • static: use static sherpa-onnx libraries and link them statically.
  • sys: expose raw c bindings (sys crate)

Documentation

For the documentation on sherpa_rs, please visit docs.rs/sherpa_rs.

For documentation on sherpa-onnx, refer to the sherpa/intro.html.

Examples

See examples

Models

All pretrained models available at sherpa/onnx/pretrained_models

No runtime deps