Voice Recognition in Python

杀马特。学长 韩版系。学妹 提交于 2019-11-29 15:18:10

问题


I'm currently working on a virtual assistant program in Python 3.3, and I'd like to incorporate voice recognition in it. Does anyone know of any python modules or tools to do this with? Any help would be greatly appreciated!


回答1:


I've spent a lot of time working on this subject.

Currently I'm developing a Python 3 open-source cross-platform virtual assistant program called Athena Voice: https://github.com/athena-voice/athena-voice-client

Users can use it much like Siri, Cortana, or Amazon Echo.

It also uses a very simple "module" system where users can easily write their own modules to enhance it's functionality. Let me know if that could be of use.

Otherwise, I recommend looking into Google's Python speech-to-text and text-to-speech packages.

Both packages can be installed by using the command:

pip install SpeechRecognition gTTS

Google STT: https://pypi.python.org/pypi/SpeechRecognition/

Google TTS: https://pypi.python.org/pypi/gTTS/1.0.2

I believe the STT has PyAudio as a dependency which can be found here (unofficial): http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio

However, if you intend to do passive/offline listening, I highly recommend reconsidering pocketsphinx. On Python 3.4 it can be installed just by typing "pip install pocketsphinx"



来源:https://stackoverflow.com/questions/17582907/voice-recognition-in-python

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