问题描述
我正在使用CMU狮身人面像库,但成功运行一次迭代后,出现此错误无法打开格式为PCM_SIGNED 16000.0 Hz,16位,单声道,2字节/帧,不支持big-endian的麦克风行."无法启动麦克风.在ubuntu 12.10中的eclipse上运行时,代码在所有迭代中均能正常工作.为什么在Windows 7中使用Eclipse时会出现此错误?
I am using CMU sphinx library, but after successfully running one iteration, this error appears "Can't open microphone line with format PCM_SIGNED 16000.0 Hz, 16 bit, mono, 2 bytes/frame, big-endian not supported." Cannot start microphone. When run on eclipse in ubuntu 12.10, code works fine for all iterations. Why is this error appearing when using eclipse in Windows 7 ?
推荐答案
如果您的config xml文件中包含以下内容:
If you have something like this in your config xml file:
<component name="microphone"
type="edu.cmu.sphinx.frontend.util.Microphone">
<property name="closeBetweenUtterances" value="false"/>
</component>
尝试将"false"也更改为"true"并重建.
try to change "false" too "true" and rebuild.
这篇关于狮身人面像中的一轮迭代后麦克风未启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!