Bug#854295: brltty-espeak: crashes while emitting speech
Hello,
Sebastian Humenda, on Sun 05 Feb 2017 21:02:37 +0100, wrote:
> I'm not sure whether the issue is actually in BRLTTY or espeak-ng, but
> I couldn't encounter any issues while using speech-dispatcher with
> espeak-ng yet.
Ok. I'm afraid that might be an issue with the way BRLTTY uses espeak
and espeak-ng behaves: BRLTTY sets a callback, but espeak-ng calls it
from its own thread, which may pose some unexpected issues. Could you
try the attached patch? It may cripple BRLTTY functionalities a bit, but
at least potentially make it more robust for Stretch, and we'll have a
closer look upstream.
Samuel
diff --git a/Drivers/Speech/eSpeak/speech.c b/Drivers/Speech/eSpeak/speech.c
index 6c303c759..9b58bc58b 100644
--- a/Drivers/Speech/eSpeak/speech.c
+++ b/Drivers/Speech/eSpeak/speech.c
@@ -167,7 +189,7 @@ static int spk_construct(volatile SpeechSynthesizer *spk, char **parameters)
if (val > espeakRATE_MINIMUM) maxrate = val;
}
- espeak_SetSynthCallback(SynthCallback);
+ //espeak_SetSynthCallback(SynthCallback);
return 1;
}
Reply to: