LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: maxzhongcn

个性化启动之语音篇--让你的 Linux 开口和你说话

[复制链接]
发表于 2004-3-30 21:07:00 | 显示全部楼层
呵呵,我给贴过来!
Festival speaks at double speed!

This seems to happen with linux and sound hardware which cannot natively support mono audio. In the past if mono audio was sent to a stereo-only sound card, the driver would send a copy to both channels, now it splits it between the channels, effectively doubling the speaking rate and raising the pitch by an octave.

It is left to the audio application to now check the hardware and send something that it can handle. Until festival's audio code is updated this will cause problems with some hardware.

There are 2 quick fixes: An expensive one and a cheap one.

   1. The expensive one is to get a decent sound card. This problem seems to occur mostly with cheap on-motherboard sound devices. Buy a reasonably priced SB16 or something.

   2. The cheap fix is to use and external play program (like play from the sox package)

      Create the file festival/lib/siteinit.scm (if you don't already have it) and add the following

(Parameter.set 'Audio_Method 'Audio_Command)
(Parameter.set 'Audio_Command "sox -t raw -sw -r $SR $FILE -c2 -t ossdsp /dev/dsp")

      [back to Festival FAQ]

      If you can't find what you need to know here, try the festival-talk mailing list.
发表于 2004-4-25 14:32:18 | 显示全部楼层
我的还是没有声音
一点都没有!
5555555555
发表于 2004-4-25 18:40:58 | 显示全部楼层
我还以为可以语音控制呢,不过这个也不错拉
发表于 2004-4-25 19:48:43 | 显示全部楼层
发表于 2005-4-13 16:01:19 | 显示全部楼层
换成这一句:
  1. echo "Hello Master,your j j j j j j gentoo box is up and running now, per per per per per please log in" > /dev/speech
复制代码

效果绝对一流!
回复 支持 反对

使用道具 举报

发表于 2005-4-13 21:14:39 | 显示全部楼层
不错, 可以用它来学英语.
回复 支持 反对

使用道具 举报

发表于 2005-4-14 00:01:50 | 显示全部楼层
它可以说拼音了, 你输入以下, 听听
echo "ni hao, huan yin lai dao linux" > /dev/speech
回复 支持 反对

使用道具 举报

发表于 2005-4-14 08:03:14 | 显示全部楼层
有趣有趣
回复 支持 反对

使用道具 举报

发表于 2005-10-21 20:17:29 | 显示全部楼层
为什么我emerge speechd之后
找不到 /var/db/pkg/media-sound/speechd-0.56/speechd-0.56.ebuild 呢?
回复 支持 反对

使用道具 举报

发表于 2005-10-22 07:25:11 | 显示全部楼层
我也一样阿
回复 支持 反对

使用道具 举报

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

本版积分规则

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