pocketsphinx

Pocketsphinx decoder initialization returns -1

瘦欲@ 提交于 2019-11-27 16:24:54
I use the raspberry pi with pocketsphinx python and I found an example here . From that script I use the same path as described in the script. When I try to run this script it give me an error: ERROR: "acmod.c", line 83: Folder 'deps/pocketsphinx/model/en-us/en-us' does not contain acoustic model definition 'mdef' Traceback (most recent call last): File "test.py", line 15, in <module> decoder = ps.Decoder(config) File "/usr/local/lib/python2.7/dist-packages/pocketsphinx/pocketsphinx.py", line 271, in __init__ this = _pocketsphinx.new_Decoder(*args) RuntimeError: new_Decoder returned -1 Does

doing actions after sound recognization in android

℡╲_俬逩灬. 提交于 2019-11-26 23:44:07
问题 please give me suggestion about this condition. is it possible in android that the device waits for special sound, and after it recognizes it, some actions happens. please tell me about your ideas.Thanks for your help! UPDATE i try pocket sphinx and do lots of searches about 'defining new keyword", but i can't do it. I use this code: public class PracticeActivity extends Activity implements RecognitionListener, edu.cmu.pocketsphinx.RecognitionListener { // private static final String KWS