LiveSpeech迭代器在macOS上不返回错误,也没有结果

问题描述 投票:2回答:1

我已在macOS上使用Python interface在虚拟环境中将venv安装到Pocketsphinx:

pip3 install --upgrade pip setuptools wheel
pip3 install --upgrade pocketsphinx

但是当我运行基本示例时:

from pocketsphinx import LiveSpeech
for phrase in LiveSpeech():
    print(phrase)

它不返回任何结果。默认麦克风在其他程序中可以使用。我已经放弃了详细的调试信息here

((注:我还全局安装了Pocketsphinx,当我运行pocketsphinx_continuous -inmic yes时,它会正确返回流识别结果。

我如何确定Python接口出了什么问题?

python pocketsphinx
1个回答
0
投票
嗯...如果您不介意将项目联机,则repl.it快速免费,可以安装软件包。
© www.soinside.com 2019 - 2024. All rights reserved.