【问题标题】:Sphinx error; missing PocketSphinx module: ensure that PocketSphinx is set up correctly狮身人面像错误;缺少 PocketSphinx 模块:确保正确设置了 PocketSphinx
【发布时间】:2020-04-09 10:10:30
【问题描述】:

我尝试使用解释:Python pocketsphinx RequestError: missing PocketSphinx module: ensure that PocketSphinx is set up correctly

所以我安装了以下软件包:

sudo apt-get install -qq python python-dev python-pip build-essential swig libpulse-dev

但我在安装后从 SpeechRecognition 运行函数时遇到了同样的错误: 狮身人面像错误;缺少 PocketSphinx 模块:确保正确设置了 PocketSphinx

我使用以下版本:

名称:pocketsphinx 版本:0.1.15 摘要:CMU Sphinxbase 和 Pocketsphinx 库的 Python 接口 主页:https://github.com/bambocher/pocketsphinx-python 作者:德米特里·普拉兹尼奇诺夫 作者邮箱:dmitry@prazdnichnov.name 许可证:BSD 位置:/usr/local/lib/python3.7/dist-packages 要求: 要求:

名称:语音识别 版本:3.8.1 摘要:用于执行语音识别的库,支持多个引擎和 API,在线和离线。 主页:https://github.com/Uberi/speech_recognition#readme 作者:Anthony Zhang (Uberi) 作者邮箱:azhang9@gmail.com 许可证:BSD 位置:/usr/local/lib/python3.7/dist-packages 要求: 要求:

【问题讨论】:

    标签: python speech-recognition speech-to-text pocketsphinx


    【解决方案1】:

    我知道这是一个旧线程,但也许有人会使用这个解释 第一次尝试:

    sudo apt-get install -qq python python-dev python-pip build-essential swig libpulse-dev
    

    然后安装以下包:

    sudo apt-get install libasound2-dev
    

    然后运行:

    pip install PocketSphinx
    

    【讨论】:

      猜你喜欢
      • 2016-07-31
      • 1970-01-01
      • 2010-11-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-01
      • 2013-01-24
      • 1970-01-01
      相关资源
      最近更新 更多