speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pulseaudio doesn't work with speech-dispatcher


From: Gerhard Gaußling
Subject: pulseaudio doesn't work with speech-dispatcher
Date: Sun, 16 Aug 2009 01:54:43 +0200

Hello,

I got problems with speech-dispatcher and pulseaudio on buntu 8.04 
Hardy/amd64

~$ sudo festival --server
server    Sun Aug 16 00:51:37 2009 : Festival server started on port 
1314
[...]
Done
info: 0, warning: 0, error: 0
Done
client(4) Sun Aug 16 01:40:52 2009 : accepted from localhost

~$ echo "Hello"|spd-say  -e -l de -t female3  -i -50 -o festival 
Hello

~$ tail -f /var/log/speech-dispatcher/festival.log 
No protocol specified
E: client-conf-x11.c: XOpenDisplay() failed
 Sun Aug 16 00:17:58 2009 [479925] PulseAudio ERROR: Failed to connect 
to server: Connection terminated
tail: /var/log/speech-dispatcher/festival.log: file truncated
 Sun Aug 16 00:26:57 2009 [726021] PulseAudio ERROR: Failed to connect 
to server: Connection terminated

les//festival.conf"
[...]

I corrected this error according to 
http://mpd.wikia.com/wiki/PulseAudio#For_Distros_where_PulseAudio_access_rights_are_broken

~$ sudo usermod -a -G pulse-access speech-dispatcher 
~$ sudo usermod -a -G pulse speech-dispatcher
~$ sudo usermod -a -G pulse-rt speech-dispatcher
~$ xhost +local:speech-dispatcher
non-network local connections being added to access control list
~$ xhost +local:spd-say
non-network local connections being added to access control list
~$  sudo usermod -a -G pulse-access festival
~$  sudo usermod -a -G pulse festival
~$  sudo usermod -a -G pulse-rt festival

But pulseaudio failed to connect:

[...]
 Sun Aug 16 01:40:58 2009 [547940]: -> Festival: |
(speechd-speak-ssml "the text is displayed above")|
 Sun Aug 16 01:40:58 2009 [548000]: Resources freed
 Sun Aug 16 01:40:58 2009 [548026]: Com: Reading response
 Sun Aug 16 01:40:58 2009 [552372]: <- Festival: |LP
|
 Sun Aug 16 01:40:58 2009 [591820]: <- Festival: |OK
|
 Sun Aug 16 01:40:58 2009 [591863]: Retrieving data

 Sun Aug 16 01:40:58 2009 [591889]: Getting data in multi mode
 Sun Aug 16 01:40:58 2009 [591915]: Stop by close mode : 0
 Sun Aug 16 01:40:58 2009 [591941]: -> Festival: (speechd-next)
 Sun Aug 16 01:40:58 2009 [932329]: <- Festival: WV

 Sun Aug 16 01:40:59 2009 [164607]: Number of samples from festival: 
22722
 Sun Aug 16 01:40:59 2009 [164767]: <- Festival: LP

 Sun Aug 16 01:40:59 2009 [164869]: <- Festival: |#<Utterance 
0x7fa5e9c12f10>|
 Sun Aug 16 01:40:59 2009 [164898]: <- Festival: OK

 Sun Aug 16 01:40:59 2009 [164925]: Sending message to audio: 45444 
bytes

 Sun Aug 16 01:40:59 2009 [164951]: Playing sound samples
 Sun Aug 16 01:40:59 2009 [164977]: Sending to audio
 Sun Aug 16 01:40:59 2009 [197931] PulseAudio ERROR: Failed to connect 
to server: Connection terminated


How to get speech-dispatcher with pulseaudio to work with ubuntu hardy?
BTW: It works with alsa, but that blocks the audio device.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]