[Tts-project] Bug#859926: speechd-up: fails to install

Dennis Filder d.filder at web.de
Wed Sep 2 16:46:03 BST 2020


I looked into this a bit and came up with the attached patch (written
against 0.10.1-2), but for further improvement I'd need some feedback.

The patch adds a new thread that is on the lookout for Pulseaudio
processes and reconfigures/restarts the output modules accordingly
once it finds one.  This allows speech-dispatcher (with the correct
privileges) to transition between ALSA and Pulseaudio without the need
for a restart (albeit with the loss of the not-yet-spoken messages in
the module and a pause of about 1-2 seconds).  In my experience it
works quite nicely.

I don't doubt that making the output modules do the transition
themselves without restarting them would be better, but that would
require changes far more intrusive than the ones in this patch.

N.B.: For this to fix the original bug during installation of
speechd-up, the default for AudioOutputMethod would have to be changed
to "pulse,alsa".

Regards,
Dennis.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-859926-patrack-0.10.1-2.patch
Type: text/x-diff
Size: 36927 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/tts-project/attachments/20200902/9b744444/attachment-0001.patch>


More information about the Tts-project mailing list