赞
踩
1、先安装PyAudio
python -m pip install PyAudio-0.2.11-cp37-cp37m-win_amd64.whl
2、安装语音识别
pip install SpeechRecognition
3、安装离线语音识别
python -m pip install pocketsphinx-0.1.15-cp37-cp37m-win_amd64.whl
4、无普通话库
下载地址
Mandarin->cmusphinx-zh-cn-5.2.tar.gz
需要做的事情
cd py36asr/lib/python3.6/site-packages/speech_recognition/pocketsphinx-data/
tar zxvf cmusphinx-zh-cn-5.2.tar.gz
mv cmusphinx-zh-cn-5.2 zh-cn
cd zh-cn
mv zh_cn.cd_cont_5000 acoustic-model
mv zh_cn.lm.bin language-model.lm.bin
mv zh_cn.dic pronounciation-dictionary.dict
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。