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

sys sherpa-rs-sys

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

38 releases (5 breaking)

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

#863 in Audio

Download history 232/week @ 2024-12-07 105/week @ 2024-12-14 518/week @ 2024-12-21 138/week @ 2024-12-28 123/week @ 2025-01-04 176/week @ 2025-01-11 393/week @ 2025-01-18 14/week @ 2025-01-25 13/week @ 2025-02-01 146/week @ 2025-02-08 165/week @ 2025-02-15 175/week @ 2025-02-22 73/week @ 2025-03-01 49/week @ 2025-03-08 23/week @ 2025-03-15 29/week @ 2025-03-22

195 downloads per month
Used in 2 crates

MIT license

2.5MB
57K SLoC

C++ 34K SLoC // 0.1% comments Kotlin 11K SLoC // 0.1% comments Java 3.5K SLoC // 0.0% comments Dart 3K SLoC // 0.0% comments C 2.5K SLoC // 0.2% comments Batch 1K SLoC Rust 660 SLoC // 0.1% comments Prolog 270 SLoC Python 150 SLoC // 0.2% comments TypeScript 67 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 9 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