mirror of
https://gitlab.com/eagledot/nim-deepspeech
synced 2026-01-02 02:54:49 +00:00
No description
| examples | ||
| include | ||
| src | ||
| deepspeech.nimble | ||
| LICENSE | ||
| README.md | ||
Nim bindings for the Mozilla's DeepSpeech (v0.7.0) deep learning model.
Prerequisites:
-
Shared library
libdeepspeech.soforv0.7.0which you can get after downloading native client package from their releases page based on your cpu architecture and operating system and extracting it.Note: Native package would look like
native_client.amd64.cpu.win.tar.xzfor windows OS on a AMD64 CPU architecture.Note: This lib must be in your system's PATH or in the directory from where executable/binary is run from.
-
Pretrained Models and Scorer. Download them from their
releasespage as well which would look likedeepspeech-0.7.(0|1).models.pbmm/tfliteanddeepspeech-0.7.(0|1).scorer
Note:
.wavfiles or raw audio data withsingle channel,sampled at16Khzand having audio format asINT16 PCMare desired. Be sure to convert or resample data/audio according to above specifications if not already so.
Installation
$ nimble install deepspeech@0.7.0or$ nimble install https://gitlab.com/eagledot/nim-deepspeech@0.7.0$ nimble install https://gitlab.com/eagledot/nim-wav[optional if you need to read from or write to a.wavfile , needed to run examples]
Usage
import deepspeech
For more detailed usage see examples in ./examples/ directory.