Always tries to use PulseAudio, even when no PulseAudio is available

Bug #1026801 reported by Johan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
espeak (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu 12.04
eSpeak text-to-speech: 1.46.02 06.Jan.12

When PulseAudio is not installed, it still tries to connect to it. Instead, it should just ALSA or OSS4 when those are available. Possibly the configuration file could then have an entry like alsa, pulse, oss4, which would define a preference for which audio system to use. There should also be a way to disable bluetooth. Displaying anything about bluetooth when there isn't even bluetooth hardware present is bad.

$ espeak-gui
{'language': 'en/en-us'}
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 pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_bluetooth.so
ALSA lib dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_bluetooth.so
ALSA lib dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_bluetooth.so
ALSA lib dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_bluetooth.so
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

This results not merely in these messages, but also in some log entries which are even spoken (i.e. output via speakers, but for no good reason).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.