python - Raspberry pi Jasper 语音识别无法正常工作

标签 python linux

我遵循本教程http://jasperproject.github.io/documentation/ 我使用 Debian Jessie,所以大多数我都必须编译。 当我想运行 jasper.py 时,出现此错误: 有谁知道问题出在哪里。

DEBUG:client.diagnose:Checking network connection to server 'www.google.com'... DEBUG:client.diagnose:Network connection working DEBUG:main:Trying to read config file: '/root/.jasper/profile.yml' DEBUG:client.diagnose:Checking python import 'pocketsphinx'... DEBUG:client.diagnose:Python package 'pocketsphinx' found: /usr/local/lib/python2.7/dist-packages/pocketsphinx/init.py' WARNING:root:tts_engine not specified in profile, defaulting to espeak-tts' DEBUG:client.diagnose:Checking executable 'aplay'... DEBUG:client.diagnose:Executable 'aplay' found: '/usr/bin/aplay' DEBUG:client.diagnose:Checking executable 'espeak'... DEBUG:client.diagnose:Executable 'espeak' found: '/usr/bin/espeak' DEBUG:client.vocabcompiler:compiled_revision is 'bb74ae36d130ef20de710e3a77b43424b8fa774f' ERROR:root:Error occured! Traceback (most recent call last): File "jasper.py", line 146, in app = Jasper() File "jasper.py", line 109, in init
stt_passive_engine_class.get_passive_instance(), File "/home/pi/jasper/client/stt.py", line 48, in get_passive_instance
return cls.get_instance('keyword', phrases) File "/home/pi/jasper/client/stt.py", line 42, in get_instance
instance = cls(**config) File "/home/pi/jasper/client/stt.py", line 126, in init **vocabulary.decoder_kwargs) TypeError: init() got an unexpected keyword argument 'hmm'

最佳答案

我将 stt.py 脚本粘贴到 Pastebin 上。 http://pastebin.com/Cy6ziGPk 因为我无法在这个论坛上管理这个。

关于python - Raspberry pi Jasper 语音识别无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39119471/

相关文章:

python - Beautifulsoup 不返回子元素

c - 为什么接受返回的套接字与参数套接字不同?

php - 从 PHP 脚本运行 "sudo"命令?

c - longjmp 是如何工作的?

python - 如何使用正则表达式提取多个字符串?

python - 如何对矩阵进行分箱

python - 扁平字典和嵌套字典之间的速度性能差异

python - Notepad++ Python 脚本 - 用小数点计算 XML 数字

Python 子进程向我的 shell 参数添加额外的引号

python - 如何将 Python 程序的标准输出移至文件?