LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 937|回复: 2

[解决] stardict 用 espeak 后没有声音

[复制链接]
发表于 2008-5-15 08:18:58 | 显示全部楼层 |阅读模式
各位好,
(1)装了app-dicts/stardict3.0.1-r2 (espeak spell -debug -festival -gnome -gucharmap) 打开了espeak 和 festival,
(2)然后 # cp -r WyabdcRealPeopleTTS/ /usr/share/
(3)也在Preferences -> Dictionary -> Sound中加入"espeak %s"

emerge 后提示>>>
Original instance of package unmerged safely.
* Note: tts plugins are not built. For additional info, please see:
* http://r0bertz.blogspot.com/2007 ... t-301s-text-to.html
* If you wish to enable tts engine, please enable 'Use TTS program.' at:
* Preferences -> Dictionary -> Sound and fill in Commandline with:
* "echo %s | festival > --tts" or "espeak %s" depending on your taste


但是没有声音,请问,stardcit和espeak如何使用,以前用过festival,好像比较好配,但是觉得文件太大,想用espeak谢谢!

我觉得是安装espeak出现的问题,google了一把,也没发现相关的文档。
 楼主| 发表于 2008-5-15 09:54:06 | 显示全部楼层
espeak 加上 portaudio这个use后正常了。但是还是不能在stardict中播放出声音。在stardict中,preference->sound->Enable sound event "Command for playing wav files:"aplay %s" 好像没有作用。如果换成 "espeak %s" 则发现stardict在胡说八道,"good"的音都发的是其他的音。

如果espeak就只是用自己的词库,而不是用真人的语音库,觉得实在没有用的必要了。

我在console中,使用aplay 播放真人语言库中的wav文件效果很好。

现在的问题是:
如何设置,才能让stardict播放真人语音?哪位有经验给指点一下。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-15 10:00:20 | 显示全部楼层
http://www.linuxsir.cn/bbs/attac ... 58&d=1183136448
看了这个帖子受了启发,原来在stardict中,preference->sound->Enable sound event "Command for playing wav files:"aplay %s" 应该该成 “aplay”。不过我觉得用"aplay -R2"可能更好点。

现在可以干掉espeak了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表