Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to use espeak on my server, so I can scare my girlfriend from work :)

ubuntu 11.04 server.

sudo espeak -v en "Hello i am espeak"

Error:

ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
share|improve this question
add comment

2 Answers

even if you are using the ubuntu server install, you might have the sound server running. This will default to surround alsa emulation which espeak isn't capable to handle.

Use: espeak -v en "Hello i am espeak" --stdout|paplay instead.

share|improve this answer
    
I get "The program 'paplay' is currently not installed. You can install it by typing: sudo apt-get install pulseaudio-utils" –  Sandro Dzneladze Nov 25 '11 at 15:34
1  
Then just do so. –  aquaherd Nov 26 '11 at 9:53
1  
I get a pa_context_connect() failed: Connection refused error message when I do this. –  Jakob Weisblat Jul 13 '12 at 20:24
add comment

I had exakt the same problem on a Raspberry Pi. For me it worked fine with:

espeak -v en "Hello i am espeak" --stdout | aplay

(aplay instead of paplay)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.