User avatar
jbeale
Posts: 3649
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

espeak speech synthesizer warning messages

Tue Oct 15, 2013 5:24 pm

I installed the 'espeak' text-to-speech synthesizer which works to generate (mostly) recognizable speech. But each time I try it I get a long list of warning messages from ALSA lib and others, even though it does work. Is this normal, or do I have some mis-configuration?

Code: Select all

pi@raspberrypi:~/sksense$ espeak --version
eSpeak text-to-speech: 1.46.02  06.Jan.12  Data at: /usr/lib/arm-linux-gnueabihf/espeak-data

pi@raspberrypi:~/sksense$ espeak "hello"
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
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 request channel
jack server is not running or cannot be started

User avatar
M5
Posts: 12
Joined: Tue Mar 27, 2012 2:35 pm
Contact: Website

Re: espeak speech synthesizer warning messages

Fri Nov 15, 2013 3:10 pm

I have the same problem. I have been searching for an answer but I can’t find anything yet.

Is this normal or am I missing something?

Can anyone suggest anywhere to look to find an answer?

This is the error I get

Code: Select all

pi@pibot ~ $ espeak "Hello."
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
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 request channel
jack server is not running or cannot be started

User avatar
Douglas6
Posts: 4853
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: espeak speech synthesizer warning messages

Fri Nov 15, 2013 4:57 pm

This is a bit of a shot in the dark, since my Pi is not available, but I solved a similar(?) problem by editing /usr/share/alsa/alsa.conf and changing the following line (comment-out the first, add the second):

Code: Select all

#pcm.front cards.pcm.front
pcm.front cards.pcm.default
Possibly followed by

Code: Select all

sudo alsa reload
Gotta admit though, I don't (and probably never will) "get" ALSA

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: espeak speech synthesizer warning messages

Fri Nov 15, 2013 8:45 pm

Douglas6 wrote:This is a bit of a shot in the dark, since my Pi is not available, but I solved a similar(?) problem by editing /usr/share/alsa/alsa.conf and changing the following line (comment-out the first, add the second):

Code: Select all

#pcm.front cards.pcm.front
pcm.front cards.pcm.default
I've had that in my alsa.conf for months and it doesn't make any difference to the stupid and meaningless stream of messages.

The easiest way to suppress that collection of meaningless stuff is 'espeak "Hello" 2>/dev/null'

Or forget espeak and try this (which needs an Internet connection to work)

Code: Select all

#!/bin/bash
say() { local IFS=+;/usr/bin/mplayer -ao alsa -really-quiet -noconsolecontrols "http://translate.google.com/translate_tts?tl=en&q=$*"; }
say $*
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
Douglas6
Posts: 4853
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: espeak speech synthesizer warning messages

Sat Nov 16, 2013 1:06 am

DougieLawson wrote: I've had that in my alsa.conf for months and it doesn't make any difference to the stupid and meaningless stream of messages.
Well, it does decrease it by one :)

User avatar
M5
Posts: 12
Joined: Tue Mar 27, 2012 2:35 pm
Contact: Website

Re: espeak speech synthesizer warning messages

Wed Nov 27, 2013 12:42 pm

Thanks for the feedback.
I’ve been looking through different forums, but can’t find an answer.
I am having a go at building an RPi robot like the one in issue 132 of Linux User.
So I think I’ll stay with eSpeak as it won’t always have a network connection, and use the “2>/dev/null”.

Thanks again

Return to “General discussion”