赞
踩
下载地址:git https://github.com/DinnerHowe/simple_voice.git
安装pyaudio: sudo apt-get install python-pyaudio python3-pyaudio
安装request: pip install requests
教程网址:http://blog.51cto.com/9455163/1825839
安装 vlc: git clone https://github.com/geoffsalmon/vlc-python.git
下载完成后,使用如下命令加载vlc模型到Python中 sudo cp vlc-python/generated/vlc.py /usr/lib/python2.7/
教程网址:https://blog.csdn.net/u011118482/article/details/55001444
测试使用:https://blog.csdn.net/ZhangRelay/article/details/78867450
1。功能包使用
relaybot@relaybot-desktop:~/Rob_Soft/Baidu_Speech$ roslaunch baidu_speech
simple_speaker.launch simple_voice.launch warning_speaker.launch
分别有三个示例launch:simple_speaker.launch,simple_voice.launch,warning_speaker.launch。
2。文本发音-simple_speak
$ roslaunch baidu_speech simple_speaker.launch Gender:=man
http://wiki.ros.org/baidu_speech
参数等具体说明参考wiki,这里使用男声,运行过程如下。
3。语音识别-simple_voice
$ roslaunch baidu_speech simple_voice.launch
如果运行时候还有错误如下:
解决办法:sudo apt-get install vlc
pip install python-vlc
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。