4回答

0收藏

[教程] Raspberry Pi 文字转语音服务

Raspberry Pi Raspberry Pi 3929 人阅读 | 4 人回复 | 2013-03-27



方法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
  to add line
  nolirc=yes


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)
文章来源:http://blog.sina.com.cn/s/blog_3cb6a78c0101a81r.html

分享到:
回复

使用道具 举报

回答|共 4 个

倒序浏览

沙发

w932443004

发表于 2013-3-27 12:06:13 | 只看该作者

嘿嘿 不错的
板凳

mcp2013

发表于 2013-3-27 16:07:54 | 只看该作者

看不明白                                          
地板

110TB

发表于 2013-3-27 16:57:59 | 只看该作者

是写个shell,远程调用云服务,实现一段字符转语音,不知道中文可行否
5#

wyyyh

发表于 2013-3-27 21:06:53 | 只看该作者

http://hi.baidu.com/wyyyh/item/a04f6a93bd55bfdf1e427108

用Google的TTS,比较稳定,多音字它是不太懂的。
您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条