With gedit I changed the AUDIO settings in the Makefile as shown below
and saved the modified Makefile back to disk.
--- espeak-1.40.02-source/src/Makefile line 27-29 ---
#AUDIO = portaudio
AUDIO = pulseaudio
#AUDIO = sada
--- end of espeak-1.40.02-source/src/Makefile ---
To be able to compile espeak with pulseaudio support I needed
the following Ubuntu packages to be installed:
build-essential
libpulse-dev (including all dependencies)
Then I typed "make", "sudo make install" and "sudo ldconfig":
bash ~/downloads/espeak/espeak-1.40.02-source/src$ make
bash ~/downloads/espeak/espeak-1.40.02-source/src$ sudo make install
bash ~/downloads/espeak/espeak-1.40.02-source/src$ sudo ldconfig
Now, if I type "orca", I get speech instead of weird noises.
There is NO NEED to change anything in the Ubuntu-9.04 audio setup.
Hi all,
Preface: I hope this is the last and final mega-post on this page.
Note to the developers: this bug has NOTHING to do with portaudio
and there is NO NEED to change the Ubuntu audio setup.
It was the wrong information in the espeak "ReadMe" file which made
me assume that this could have something to do with portaudio.
Everything looks as if the Ubuntu espeak packages have just been
copied from Debian without checking for pulseaudio compatibility.
Here is how I fixed espeak on Ubuntu-9.04-i386 with Gnome.
--- How to compile espeak with PulseAudio support on Ubuntu-9.04 ---
Using an Ubuntu-9.04-i386 DVD I did a Ubuntu "Desktop" installation
including a subsequent package update (May 11th 2009).
For a test I started orca by typing "orca" into the Gnome terminal
but instead of speech I got only weird noises.
I copied the ORIGINAL espeak source code from espeak. sourceforge. net/download. html
http://
into a sub-folder of my home directory:
bash ~/$ mkdir -p downloads/espeak 1.40.02- source. zip ~/downloads/espeak
bash ~/$ cp espeak-
I unzipped the espeak source package and changed the working directory 1.40.02/ src":
to ".../espeak-
bash ~/$ cd downloads/espeak 1.40.02- source. zip 1.40.02- source/ src/ espeak/ espeak- 1.40.02- source/ src$
bash ~/downloads/espeak$ unzip espeak-
bash ~/downloads/espeak$ cd espeak-
bash ~/downloads/
I modified the Makefile in the espeak "src" directory by typing:
bash ~/downloads/ espeak/ espeak- 1.40.02- source/ src$ gedit Makefile
With gedit I changed the AUDIO settings in the Makefile as shown below
and saved the modified Makefile back to disk.
--- espeak- 1.40.02- source/ src/Makefile line 27-29 --- 1.40.02- source/ src/Makefile ---
#AUDIO = portaudio
AUDIO = pulseaudio
#AUDIO = sada
--- end of espeak-
To be able to compile espeak with pulseaudio support I needed
the following Ubuntu packages to be installed:
build-essential
libpulse-dev (including all dependencies)
Then I typed "make", "sudo make install" and "sudo ldconfig":
bash ~/downloads/ espeak/ espeak- 1.40.02- source/ src$ make espeak/ espeak- 1.40.02- source/ src$ sudo make install espeak/ espeak- 1.40.02- source/ src$ sudo ldconfig
bash ~/downloads/
bash ~/downloads/
Now, if I type "orca", I get speech instead of weird noises.
There is NO NEED to change anything in the Ubuntu-9.04 audio setup.
------- ------- ------- ---- Emergency Rescue ------- ------- ------- -------
Because there is no "uninstall" target defined in the espeak Makefile,
here is how to remove a self-compiled espeak from a Ubuntu system:
sudo rm -f /usr/bin/espeak libespeak. a libespeak. so libespeak. so.1 libespeak. so.1.1. 40 espeak_ lib.h espeak- data
sudo rm -f /usr/lib/
sudo rm -f /usr/lib/
sudo rm -f /usr/lib/
sudo rm -f /usr/lib/
sudo rm -f /usr/include/
sudo rm -rf /usr/share/
Then re-install the following Ubuntu packages:
espeak
espeak-data
libespeak1
If I now type "orca" I get exactly the same weird noises as before. :-)
- edgar