个人工具
登录
查看“UbuntuHelp:TextToSpeech”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:TextToSpeech”的源代码
来自Ubuntu中文
←
UbuntuHelp:TextToSpeech
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/TextToSpeech}} {{Languages|UbuntuHelp:TextToSpeech}} == Introduction == You can take advantage of Text-To-Speech in Ubuntu by using a program called Festival. Because by default it doesn't work with ESD (the sound mixer that comes by default with Dapper), a little of manual tweaking is needed. This is not meant to be a guide on how to use Festival (for that, read the Festival user docs), but simply how to get it working on Ubuntu with ESD. (If you don't use Festival with ESD, you will have to disable ESD in the "Sounds" preferences dialog. But in that case, your other multimedia apps won't be able to play audio at the same time.) == Installation == Install Festival (and related files) $ sudo apt-get install festival (Additional voices are available in the Ubuntu respositories. Type "festival" in synaptic for a list of packages.) Install esdplay, which is part of the esound-clients package: $ sudo apt-get install esound-clients == Configuration == You need to configure festival so that it sends its output through ESD. Otherwise, you'll get the following error when you try to run Festival: "can't open /dev/dsp". Edit the /etc/festival.scm: $ gksudo gedit /etc/festival.scm Add the following lines at the end of the file: <pre><nowiki>(Parameter.set 'Audio_Command "esdplay $FILE") (Parameter.set 'Audio_Method 'Audio_Command) (Parameter.set 'Audio_Required_Format 'snd)</nowiki></pre> == Testing == Test your setup by typing: $ festival you'll be presented with a > prompt. Type: > (Say``Text "Hello") The computer should say "hello". To listen to a text file type: > (tts FILENAME nil) FILENAME must be in quote marks. ---- [[category:CategoryDocumentation]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:TextToSpeech
。