Wednesday, September 15, 2010

Ubuntu Text to Speech

$ sudo apt-get install festival
$ sudo echo "Hello world." | festival --tts
$ sudo dpkg --force-architecture --install AdbeRdr9.3.4-1_i386linux_enu.deb

navaburo
5 Cups of Ubuntu

navaburo's Avatar

Join Date: Oct 2007
Location: Hoboken, NJ
Beans: 38
Ubuntu 7.10 Gutsy Gibbon

SOLUTION: "Linux: can't open /dev/dsp"
Why festival uses the outdated /dev/dsp (OSS emulation) is beyond me.

To make it use ALSA, do the following:

Code:

printf ";use ALSA\n(Parameter.set 'Audio_Method 'Audio_Command)\n(Parameter.set 'Audio_Command \"aplay -q -c 1 -t raw -f s16 -r \$SR \$FILE\")\n" > .festivalrc

Then you can listen to music and use festival simultaneously.


Then run

http://ubuntuforums.org/showthread.php?t=171182&page=2

No comments: