Friday, April 29, 2011

Error:: Linux: can't open /dev/dsp

Go to your home directory and open the .festivalrc (if it is not there, just create it)
$cd
$sudo gedit .festivalrc
add the following line in this file and save:
(Parameter.set 'Audio_Command "aplay -q -c 1 -t raw -f s16 -r $SR $FILE")
(Parameter.set 'Audio_Method 'Audio_Command)

Monday, April 18, 2011

Installing gnome speech in ubuntu

The first step in rebuilding gnome-speech is to make sure you've set up your build environment. obtain the source. The most up to date, official release can always be found here: ftp://ftp.gnome.org/pub/GNOME/sources/gnome-speech/

At the time of this writing, the latest version is 0.4.7; However, as updates occur with relative frequency, it is a good idea to always confirm that you are getting the most current release before downloading. After downloading, extract the archive with a command similar to the following:

tar -xvf gnome-speech-0.4.7.tar.gz

apt-get build-dep gnome-speech


cd gnome-speech
./configure --prefix=/usr
make install

Errors:
1.checking for ORBIT... configure: error: Package requirements (ORBit-2.0 >= 2.3.94) were not met:

No package 'ORBit-2.0' found

Solution:You are supposed to install packages ending in dev for compiling so try installing liborbit2-dev and configure should stop complaining about orbit not found.

2.checking for gnome_speech... configure: error: Package requirements (bonobo-activation-2.0 >= 0.9.1 libbonobo-2.0 >= 1.97.0 ORBit-2.0 >= 2.3.94 gobject-2.0) were not met:

No package 'bonobo-activation-2.0' found
No package 'libbonobo-2.0' found

Solution: try installing libbonoboui2-dev from synaptic package manager

can't open /dev/dsp

If festival returns the following error message:

Linux: can't open /dev/dsp

Switch to ALSA output by adding these lines to the end of your .festivalrc file, or to /usr/share/festival/festival.scm (source):

(Parameter.set 'Audio_Method 'Audio_Command)
(Parameter.set 'Audio_Command "aplay -q -c 1 -t raw -f s16 -r $SR $FILE")