Setting up Pocketsphinx for Python in Windows

谁都会走 提交于 2019-12-04 02:21:57

问题


Can somebody help me in building pocketsphinx speech recognition in windows. I'm facing difficulty in understanding the instruction provided by sphinx in ths page.

I want to develop a speech controlled computer automation application, and I'm using Python. I don't know how to install sphinx so that I can import it in the Python environment like this:

import pocketsphinx as ps

But can't make out anything from it. I was able to do it easily in Ubuntu using the

sudo apt-get install sphinx*

But, no luck with Windows. Any help would be appreciated.


回答1:


Windows Solution

Christoph Gohlke kindly added a compiled version of pocketsphinx to his unofficial extension library.

If you are running Python 3.5 (32-bit) then download: "pocketsphinx-0.0.9-cp35-cp35m-win32.whl"

Here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pocketsphinx

Then run: pip3 install "pocketsphinx-0.0.9-cp35-cp35m-win32.whl"



来源:https://stackoverflow.com/questions/18889268/setting-up-pocketsphinx-for-python-in-windows

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