在Debian下如何让词典出声,做的时候不让叫出声


在Debian下安装了StarDict和RecitedWord两个软件,一个是词典、另一个是背单词用的,想来这两个软件对于我们这些E文不是很好的人来说是很有用的吧!可是安装之后,居然不能发声。原以为是本本太差,没有多想,可是看到朋友同我一样的机器,只不过是安装了RedHat,就可以发声了。所以下定决心找出到底是什么原因。
在网上找了N个站点,终于在一个英文站点上找到了原因,原文如下:
Q: Why does esound not default to autospawn?

A: esound used to default to autospawning, which means that programs
would try to start the esd daemon if it wasn't running. The problem
is, if you don't have sound hardware correctly setup, esd would take a
long time to try opening the sound device(s) at all possible supported
rates, and people would think that the Gnome desktop had "hung" for
two minutes.
正是由于上述原因,所以在Debian中缺省是不支持autospawn的,而StarDict和RecitedWord是使用esound的,因此发不出声来。知道了原因那么解决它就很容易了。

  1. 安装esound, apt-get install esound
  2. 修改/etc/esound/esd.conf,将第一行的auto_spawn=0 改为auto_spawn=1
  3. Reboot
  4. 恭喜你,终于可以听到精彩的声音了!呵呵

PS:有的朋友用这个方法之后,出现象上面提到的假死机现象,我去看了一下,发现它连ALSA都没安装,同时音效服务器也没启用。将ALSA安装后,同时启用音效服务器,重启之后就可以听到声音了,连esd.conf文件都不用修改!



本文转自 firehare 51CTO博客,原文链接:http://blog.51cto.com/firehare/588068,如需转载请自行联系原作者

相关内容