Skip to content

Commit

Permalink
Merge pull request #176 from delphieritas/patch-28
Browse files Browse the repository at this point in the history
Update README.md for speech_recognition
  • Loading branch information
chrishkchris committed Jan 20, 2021
2 parents 14a9e9e + e3367a2 commit 4bfbe59
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions examples/models/speech_recognition/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@ By default, the `TfDeepSpeech` model should use the pre-built language model (LM
which works for the *English* language. You'll need to first download this model's file dependencies by running (in Rafiki's root folder):

```
bash examples/models/speech_recognition/tfdeepspeech/download_file_deps.sh
bash examples/models/speech_recognition/tfdeepspeech/download_lm.sh
bash examples/models/speech_recognition/tfdeepspeech/download_trie.sh
wget https://github.com/mozilla/DeepSpeech/releases/download/v0.7.3/deepspeech-0.7.3-models.scorer -P <model_root_directory>/tfdeepspeech
```

This downloads the files `alphabet.txt`, `lm.binary` and `trie` into `<rafiki_root_directory>/tfdeepspeech`, where the `TfDeepSpeech` model reads its dependencies from by default.
This downloads the files `alphabet.txt`, `lm.binary`, `trie` and `scorer` into `<model_root_directory>/tfdeepspeech`, where the `TfDeepSpeech` model reads its dependencies from by default.

```
pip --no-cache-dir install tensorflow==1.12.0
pip install ds_ctcdecoder==0.6.1
```
This will download dependencies={"ds_ctcdecoder":"0.6.1", "tensorflow":'1.12.0', }

If you wish to generate your own language models and trie files instead, or wish to implement TfDeepSpeech to other languages, see instructions provided below.

Expand Down Expand Up @@ -81,4 +89,4 @@ bazel-bin/native-clinet/generate_trie ../rafiki/examples/datasets/speech_recogni

The `trie` file is now in the data directory.

*Note: The `generate_trie` binaries are subject to updates by the DeepSpeech team. If you find mismatch of trie file version, update the version of ctc_decoder package by amending the `VERSION` variable in `examples/models/speech_recognition/utils/taskcluster.py`.*
*Note: The `generate_trie` binaries are subject to updates by the DeepSpeech team. If you find mismatch of trie file version, update the version of ctc_decoder package by amending the `VERSION` variable in `examples/models/speech_recognition/utils/taskcluster.py`.*

0 comments on commit 4bfbe59

Please sign in to comment.