11.3. 启用 Festival Speech Synthesis 系统
默认情况下,Organ 使用 eSpeak 发音器,但也支持 Festival Speech Synthesis 系统。eSpeak 和 Festival Speech Synthesis System( Festival)结合了不同语音。有些用户可能更喜欢使用默认的 eSpeak 组合 器。要启用 Festival,请按照以下步骤执行:
安装 Festival 并使其在引导时运行
安装 festival:
yum install festival festival-freebsoft-utils
~]# yum install festival festival-freebsoft-utilsCopy to Clipboard Copied! Toggle word wrap Toggle overflow 使 Festival 在引导时运行:
创建新的
systemd单元文件:在
/etc/systemd/system/目录中创建一个文件,并使其可执行。touch /etc/systemd/system/festival.service chmod 664 /etc/systemd/system/festival.service
~]# touch /etc/systemd/system/festival.service ~]# chmod 664 /etc/systemd/system/festival.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow 确保
/usr/bin/festival_server文件中的 脚本用于运行 Festival。在/etc/systemd/system/festival.service文件中添加以下内容:[Unit] Description=Festival speech synthesis server [Service] ExecStart=/usr/bin/festival_server Type=simple
[Unit] Description=Festival speech synthesis server [Service] ExecStart=/usr/bin/festival_server Type=simpleCopy to Clipboard Copied! Toggle word wrap Toggle overflow 通知
systemd存在新的festival.service文件:systemctl daemon-reload systemctl start festival.service
~]# systemctl daemon-reload ~]# systemctl start festival.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow 启用
festival.service:systemctl enable festival.service
~]# systemctl enable festival.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
为 Festival 选择选择
Festival 提供多个语音。
要获得可用的语音,请从以下列表中安装相关软件包:
- festvox-awb-arctic-hts
 - festvox-bdl-arctic-hts
 - festvox-clb-arctic-hts
 - festvox-kal-diphone
 - festvox-ked-diphone
 - festvox-rms-arctic-hts
 - festvox-slt-arctic-hts
 - hispavoces-pal-diphone
 - hispavoces-sfl-diphone
 
查看有关特定语音的详细信息:
yum info package_name
~]# yum info package_name
要使所需语音可用,请使用这个语音安装软件包,然后重启:
yum install package_name reboot
~]# yum install package_name
~]# reboot