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

sherpa-rs

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

#267 in Audio

Download history 320/week @ 2024-12-11 117/week @ 2024-12-18 484/week @ 2024-12-25 113/week @ 2025-01-01 168/week @ 2025-01-08 416/week @ 2025-01-15 12/week @ 2025-01-22 13/week @ 2025-01-29 9/week @ 2025-02-05 389/week @ 2025-02-12 129/week @ 2025-02-19 130/week @ 2025-02-26 38/week @ 2025-03-05 25/week @ 2025-03-12 23/week @ 2025-03-19 14/week @ 2025-03-26

123 downloads per month

MIT license

2.5MB
58K 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 Rust 2.5K SLoC // 0.0% comments Batch 1K SLoC Prolog 269 SLoC Python 149 SLoC // 0.1% comments TypeScript 66 SLoC Shell 37 SLoC Forge Config 1 SLoC

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

Dependencies