分享

festival

 牛厨馆 2021-12-23

 就是 text to speech,朗读引擎。ubuntu 下安装 festivalphp

sudo apt-get install festival
sudo apt-get install esound-clients
html

须要对Festival进行设置才能使其经过ESD输出音频,不然当你试图运行Festival时你将收到如下错误信息: “can’t open /dev/dsp”linux

sudo gedit /etc/festival.scmubuntu

(Parameter.set 'Audio_Command “esdplay $FILE”) (Parameter.set 'Audio_Method 'Audio_Command) (Parameter.set 'Audio_Required_Format 'snd)post

朗读一段文本“My talking Linux PC efin rocks”ui

echo “My talking Linux PC efin rocks” | festival –ttsspa

朗读 file.txt 文件nuxt

cat -A file.txt | festival –ttsunix

朗读当前时间
date | festival –ttscode

创建桌面快捷方式

gedit ~/Desktop/readit.desktop

内容为

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name[en_US]=festival
Exec=festival –tts
Name=festival

把须要朗读的文件拖到这个图标上便可。(注意:我这样作了,但读个没完!机器也很卡,当心点哦)

还能够放在 cron 里定时提醒时间。

注意:guoshuang2007-12-20+貌似这个 festival 服务会下降系统启动速度!(不是它也多是 postfix)用

sudo sysv-rc-conf

去掉或者下降其启动级别便可。(方向键选择;空格切换选择|反选;Q 退出)安装用下面命令:

sudo apt-get install sysv-rc-conf

而后这样起动:

更多资料:

Transform Linux into a Talking Companion
Ubuntu 之玩转语音合成(Festival)
TextToSpeech – 出自Ubuntu中文


    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多