友情提示点击顶部放大镜 可以使用站内搜索 记住我们的地址 www.hainabaike.com
方法1:Festival Text to Speech
sudo apt-get install festival echo “Just what do you think you're doing, Dave?” | festival --tts speak RPi’s IP address: hostname -I | festival -tts
方法2:Espeak Text to Speech
sudo apt-get install espeak espeak -ven+f3 -k5 -s150 "I've just picked up a fault in the AE35 unit"
方法3:Google Text to Speech
sudo nano /etc/mplayer/mplayer.conf
添加一行
nolirc=yes
创建 speech.sh 脚本
nano speech.sh
内容如下:
#!/bin/bash say() { local IFS=+;/usr/bin/mplayer -ao alsa -really-quiet -noconsolecontrols "http://translate.google.com/translate_tts?tl=en&q=$*"; } say $*
脚本授权,执行脚本。
chmod u+x speech.sh ./speech.sh Look Dave, I can see you're really upset about this.
参考连接:http://elinux.org/RPi_Text_to_Speech_(Speech_Synthesis)
标签: 树莓派raspberrypisoftwarelevel3multimedia语音tts
文章来源:
树莓派实验室
版权声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除。
评论列表