When using espeak voice synthesizer, we were getting an error message "bt_audio_service_open: connect() failed: Connection refused (111)".
Solutions which might work are:
1. Pipe espeak output through aplay in a bash script
Code:
%words = "hello world" espeak --stdout %words | aplay
or
2. Install Gnome Espeaker front-end:
http://gespeaker.googlecode.com/file…er_0.6_all.deb
If none of these work, a 3rd suggestion for the cause of the problem is that it is related to alsa configuration and not to the sound issue.
















The error happens because bluetooth was disabled but alsa is still configured to use BT services, to fix this just:
But be careful with this solution if you do use bluetooth devices for audio.