How to get espeak working?
Solution 1:
Please, run this test on the command line (AKA, terminal):
espeak "Hello, I am Espeak, the voice synthesizer" --stdout | paplay
That should work, but if you want the Linux voice synthesizer to read your text out loud, you should run and enable Orca (the GNOME default screen reader). It work with Evince, Firefox, LibreOffice, etc.
Solution 2:
That is the output from when I write "espeak hello" as well (and it does in fact say "hello" to me), so the output itself does not look like the program fails.
Could you please post the output of:
espeak hello
echo $?
That will give the exit code from the espeak program. Then we can tell if the espeak program thought everything went fine (usually return code 0) or if it considers itself to have failed.
Solution 3:
It looks like this error is caused by espeak trying to use alsa by default when Ubuntu is running pulseaudio - I get this error myself on my laptop, but not on my desktop. Piping the output of espeak to pulseaudio (--stdout | paplay) as suggested avoids this error message and the associated delay - I suppose another solution would be to configure espeak to use pulseaudio instead of alsa - I assume it is set this way because not all distros use pulseaudio yet?