Install eSpeak 1.46.02

I want to install the new version of eSpeak. Currently, I have installed version 1.45.04 on my Linux Mint 12 (Lisa) computer. Here is what I do.

1. Remove espeak 1.45.04 and espeak-data with Synaptic.
2. Download the current version.
3. cd /home/linuxmint/Documents/espeak-1.46.02-source/src
4. make The following message appears:

[...]
/usr/bin/ld: cannot find -lportaudio
collect2: ld returned 1 exit status
make: *** [speak] Error 1

5. sudo make install – The following message appears:

g++ -o speak speak.o compiledict.o dictionary.o intonation.o readclause.o setlengths.o numbers.o synth_mbrola.o synthdata.o synthesize.o translate.o mbrowrap.o tr_languages.o voices.o wavegen.o phonemelist.o klatt.o sonic.o -lstdc++ -lportaudio -lpthread
/usr/bin/ld: cannot find -lportaudio
collect2: ld returned 1 exit status
make: *** [speak] Error 1

6. Install portaudio19-dev with Synaptic. Close Synaptic.
7. Linux Mint terminal:

make
g++ -o speak speak.o compiledict.o dictionary.o intonation.o readclause.o setlengths.o numbers.o synth_mbrola.o synthdata.o synthesize.o translate.o mbrowrap.o tr_languages.o voices.o wavegen.o phonemelist.o klatt.o sonic.o -lstdc++ -lportaudio -lpthread
wavegen.o: In function `WavegenOpenSound()’:
wavegen.cpp:(.text+0×488): undefined reference to `Pa_StreamActive’
wavegen.o: In function `WavegenCloseSound()’:
wavegen.cpp:(.text+0×560): undefined reference to `Pa_StreamActive’
collect2: ld returned 1 exit status
make: *** [speak] Error 1

8. Terminal:

sudo make install
g++ -o speak speak.o compiledict.o dictionary.o intonation.o readclause.o setlengths.o numbers.o synth_mbrola.o synthdata.o synthesize.o translate.o mbrowrap.o tr_languages.o voices.o wavegen.o phonemelist.o klatt.o sonic.o -lstdc++ -lportaudio -lpthread
wavegen.o: In function `WavegenOpenSound()’:
wavegen.cpp:(.text+0×488): undefined reference to `Pa_StreamActive’
wavegen.o: In function `WavegenCloseSound()’:
wavegen.cpp:(.text+0×560): undefined reference to `Pa_StreamActive’
collect2: ld returned 1 exit status
make: *** [speak] Error 1

9. Now I am following this advice: Rename portaudio19.h into portaudio.h. Then make. Unfortunately, this didn’t solve my problem.

10. Install with Synaptic libportaudio0. Close Synaptic. Terminal: make. Again an error message.

11. make clean
11.a. Rename scr/portaudio.h into portaudio.h-old
11.b. Rename scr/portaudio19.h into portaudio.h
12. make
13. sudo make install
14. espeak --version
eSpeak text-to-speech: 1.46.02 06.Jan.12 Data at: /usr/share/espeak-data

Finally, it worked out. Great.

Comments are closed.