Skip to content

Commit

Permalink
Merge pull request #435 from fygul/patch-1
Browse files Browse the repository at this point in the history
Update pocketsphinx.rst
  • Loading branch information
ftnext authored Aug 2, 2022
2 parents 04b87f0 + 43d4a67 commit ae1d88d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reference/pocketsphinx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ Here is a simple Bash script to install all of them, assuming you've downloaded
SR_LIB=$(python -c "import speech_recognition as sr, os.path as p; print(p.dirname(sr.__file__))")
sudo apt-get install --yes unzip
sudo unzip -o fr-FR.zip -d "$SR_LIB"
sudo chmod --recursive a+r "$SR_LIB/fr-FR/"
sudo chmod --recursive a+r "$SR_LIB/pocketsphinx-data/fr-FR/"
sudo unzip -o zh-CN.zip -d "$SR_LIB"
sudo chmod --recursive a+r "$SR_LIB/zh-CN/"
sudo chmod --recursive a+r "$SR_LIB/pocketsphinx-data/zh-CN/"
sudo unzip -o it-IT.zip -d "$SR_LIB"
sudo chmod --recursive a+r "$SR_LIB/it-IT/"
sudo chmod --recursive a+r "$SR_LIB/pocketsphinx-data/it-IT/"
Once installed, you can simply specify the language using the ``language`` parameter of ``recognizer_instance.recognize_sphinx``. For example, French would be specified with ``"fr-FR"`` and Mandarin with ``"zh-CN"``.

Expand Down

0 comments on commit ae1d88d

Please sign in to comment.