#english #mozilla #bindings #implementation #open #source #library #open-source

deepspeech

Rust bindings to Mozilla’s DeepSpeech STT implementation

12 releases (7 breaking)

Uses old Rust 2015

0.9.0 Nov 14, 2020
0.8.0 Jul 30, 2020
0.7.0 Apr 24, 2020
0.6.1 Feb 1, 2020
0.0.1 Nov 26, 2017

#28 in Audio

Download history 53/week @ 2021-01-13 107/week @ 2021-01-20 71/week @ 2021-01-27 122/week @ 2021-02-03 127/week @ 2021-02-10 75/week @ 2021-02-17 90/week @ 2021-02-24 65/week @ 2021-03-03 220/week @ 2021-03-10 148/week @ 2021-03-17 187/week @ 2021-03-24 186/week @ 2021-03-31 171/week @ 2021-04-07 123/week @ 2021-04-14 119/week @ 2021-04-21 66/week @ 2021-04-28

286 downloads per month
Used in btfm

MIT/Apache

48KB
836 lines

deepspeech-rs

docs crates.io

Rust bindings of Mozilla's DeepSpeech library.

The library is open source and performs Speech-To-Text completely offline. They provide pretrained models for English.

Quickstart

Preparation:

  1. Obtain the Deepspeech native_client library. The release announcement contains precompiled libraries for various targets.
  2. Download the pretrained models named like deepspeech-{version}-models.tar.gz from the release announcement and extract the zip file to some location.
  3. Add the directory where the native_client library lies to your LD_LIBRARY_PATH and LIBRARY_PATH environment variables.

You can now invoke the example via:

cargo run --release --example client <path-to-model-dir> <path-to-audio-file>

It will print out the recognized sequence on stdout. The format of the audio files is important: only mono files are supported for now.

All codecs that the awesome audrey library supports are supported.

See DeepSpeech's release announcement for more.

Supported versions of DeepSpeech

We currently support version 0.9.0 of the DeepSpeech library. We will always try to provide compatibility with the most recent release possible.

License

Licensed under Apache 2 or MIT (at your option). For details, see the LICENSE file.

All examples inside the examples/ folder are licensed under the CC-0 license.

The generated bindings (sys subdirectory in git, -sys crate on crates.io) fall unter the Mozilla Public License, version 2.0.

License of your contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed / CC-0 licensed as above, without any additional terms or conditions.

Dependencies

~69KB