#speech-recognition #embedding #diarization #language-detection #sherpa

sherpa-rs

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

22 releases

0.1.9 Aug 9, 2024
0.1.8-beta.0 Aug 4, 2024
0.1.7-beta.0 Jul 13, 2024

#292 in Audio

Download history 211/week @ 2024-07-01 899/week @ 2024-07-08 48/week @ 2024-07-15 7/week @ 2024-07-22 152/week @ 2024-07-29 167/week @ 2024-08-05 21/week @ 2024-08-12 8/week @ 2024-08-19 14/week @ 2024-08-26

355 downloads per month

MIT license

1.5MB
32K SLoC

C++ 24K SLoC // 0.1% comments Kotlin 5K SLoC // 0.1% comments Rust 1K SLoC // 0.0% comments C 1K SLoC // 0.1% comments Batch 815 SLoC Prolog 215 SLoC Python 146 SLoC // 0.2% comments PowerShell 75 SLoC // 0.1% comments Shell 37 SLoC Forge Config 1 SLoC

sherpa-rs

Crates License

Rust bindings to sherpa-onnx

Features

  • Spoken language detection
  • Speaker embedding (labeling)
  • Speech to text
  • Text to speech
  • Voice activity detection

Supported Platforms

  • Windows
  • Linux
  • macOS

Install

cargo add sherpa-rs

Build

Please see BUILDING.md.

Feature flags

  • cuda: enable CUDA support
  • directml: enable DirectML support
  • tts: enable TTS

Docs

See sherpa/intro.html

Examples

See examples

Dependencies

~0.6–8.5MB
~73K SLoC