PocketSphinx - How to understand when getHypstr() returns empty yet getInSpeech() returns True?

萝らか妹 提交于 2019-12-11 17:09:07

问题


Trying edu.cmu.sphinx.pocketsphinx with processRaw to detect silence.

Using the following config:

en-us.lm.bin language model

en-us-ptm acoustic model

cmudict-en-us.dict dictionary

also setting remove_noise to True and samprate to 8000

I want to do a Ngram Search.

When the While loop calling processRaw finishes I call both

hypothesis.getHypstr() and

decoder.getInSpeech()

Why does getHypstr returns empty but getInSpeech returns True while actually there is no speech in the input argument given to processRaw.

Thanks.


回答1:


En-us-ptm is 16khz model, it will not work with sample rate 8000. This causes bad results from hypstr.

If getInSpeech returns true it probably means there was a small noise the system accepted as speech.



来源:https://stackoverflow.com/questions/51726743/pocketsphinx-how-to-understand-when-gethypstr-returns-empty-yet-getinspeech

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!