jasperproject / jasper-client

Client code for Jasper voice computing platform
MIT License
4.53k stars 1.01k forks source link

ValueError: No STT engine found for slug 'pocketsphinx' #557

Open ShunJianLee opened 8 years ago

ShunJianLee commented 8 years ago

May i know how to solve this issues?

pi@raspberrypi:~ $ /home/pi/jasper/jasper.py


pi@raspberrypi:~ $ sudo nano ~/.jasper/profile.yml carrier: '' first_name: shun gmail_password: '' last_name: jian phone_number: '' prefers_email: false stt_engine: pocketsphinx pocketsphinx: fst_model: '../phonetisaurus/g014b2b.fst' #optional hmm_dir: '/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k' #optional

G10DRAS commented 8 years ago

Its not pocketsphinx, use sphinx

stt_engine: sphinx
pocketsphinx:
   fst_model: '<path to fst>'
   hmm_dir: '<path to acoustic model>'
ShunJianLee commented 8 years ago

@G10DRAS Thanks for your reply, may i know why the terminal cant find command 'phonetisaurus-g2p' ?

pi@raspberrypi:~ $ /home/pi/jasper/jasper.py


G10DRAS commented 8 years ago

Have you compiled and installed Phonetisaurus? Check Jasper doc, [Installing Phonetisaurus, m2m-aligner and MITLM] http://jasperproject.github.io/documentation/installation/#installing-dependencies

ShunJianLee commented 8 years ago

@G10DRAS Yup, i have install already. May i know how to locate FST model (g014b2b.fst) and the Hidden Markov Model directory (hub4wsj_sc_8k) ?

pi@raspberrypi:~ $ /home/pi/jasper/jasper.py


pi@raspberrypi:~ $ ls blink1 mitlm-0.4.1 pocketsphinx-0.8 cmuclmtk mitlm-0.4.1.tar.gz pocketsphinx-0.8.tar.gz cv2.so Music Public cv.py opencv pyaudio Desktop OpenCV-2.3.1 python_games Documents opencv-2.4.10 pywit Downloads opencv-2.4.10.zip pywit-master g014b2b.tgz opencv_contrib relay1.py get-pip.py opencv_contrib-3.0.0 scripts1 get-pip.py.1 opencv_contrib.zip sketchbook get-pip.py.2 openfst-1.3.4 speech2text.sh git openfst-1.3.4.tar.gz sphinxbase-0.8 gui_example.py phonetisaurus sphinxbase-0.8.tar.gz is2013-conversion PiAUISuite sphinxbase-0.8.tar.gz.1 is2013-conversion.tgz PiAUISuite.tar.gz Templates jasper Pictures Videos m2m-aligner-1.2 PIGPIO wiringPi m2m-aligner-1.2.tar.gz pigpio.zip Melissa-Core playbook-opencv

G10DRAS commented 8 years ago

if you already compiled fst model then you will get g014b2b.fstunder g014b2b dir. and HMM you will get under/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k.