37 releases (5 breaking)

0.6.5 Jan 19, 2025
0.6.1 Dec 25, 2024
0.5.1 Oct 25, 2024
0.1.7-beta.0 Jul 13, 2024

#128 in Audio

Download history 2/week @ 2024-10-07 794/week @ 2024-10-14 220/week @ 2024-10-21 19/week @ 2024-10-28 11/week @ 2024-11-04 7/week @ 2024-11-18 320/week @ 2024-12-02 448/week @ 2024-12-09 145/week @ 2024-12-16 489/week @ 2024-12-23 77/week @ 2024-12-30 106/week @ 2025-01-06 408/week @ 2025-01-13 114/week @ 2025-01-20

753 downloads per month

MIT license

2.5MB
60K SLoC

C++ 37K SLoC // 0.0% 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 60 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