Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Speech recognition PocketSphinx-如何理解getHypstr()何时返回空值,而getInSpeech()何时返回真值?_Speech Recognition_Cmusphinx_Pocketsphinx_Pocketsphinx Android - Fatal编程技术网

Speech recognition PocketSphinx-如何理解getHypstr()何时返回空值,而getInSpeech()何时返回真值?

Speech recognition PocketSphinx-如何理解getHypstr()何时返回空值,而getInSpeech()何时返回真值?,speech-recognition,cmusphinx,pocketsphinx,pocketsphinx-android,Speech Recognition,Cmusphinx,Pocketsphinx,Pocketsphinx Android,正在使用processRaw尝试edu.cmu.sphinx.pocketsphinx以检测沉默 使用以下配置: en-us.lm.bin语言模型 en-us-ptm声学模型 cmudict-en-us.dict字典 同时将remove_noise设置为True,将samprate设置为8000 我想做一个Ngram搜索 当While循环调用processRaw完成时,我同时调用这两个函数 假设。getHypstr()和 解码器。getInSpeech() 为什么getHypstr返回空,而ge

正在使用processRaw尝试edu.cmu.sphinx.pocketsphinx以检测沉默

使用以下配置:

en-us.lm.bin语言模型

en-us-ptm声学模型

cmudict-en-us.dict字典

同时将remove_noise设置为True,将samprate设置为8000

我想做一个Ngram搜索

当While循环调用processRaw完成时,我同时调用这两个函数

假设。getHypstr()

解码器。getInSpeech()

为什么getHypstr返回空,而getInSpeech返回True,而实际上在提供给processRaw的输入参数中没有语音


谢谢。

En us ptm是16khz型号,采样率为8000时不工作。这会导致hypstr的不良结果


如果getInSpeech返回true,则可能意味着系统接受了一个小噪音作为语音。

是否从下载了cmusphinx-en-us-ptm-8khz-5.2,并将其内容复制到pocketsphinx android demo\app\src\main\assets\sync\en-us ptm中?是的,这一个更好