sl4a
sl4a copied to clipboard
Add an option to make "ttsSpeak" blocking
From @GoogleCodeExporter on May 31, 2015 11:27
I tried to make a voice menu using ttsSpeak and recognizeSpeech, however since
ttsSpeak seems to be non-blocking it's voice was recognized too.
I wrote a function that blocks until ttsSpeak is done but I would prefer an
option that does that for me.
Original issue reported on code.google.com by [email protected]
on 7 Aug 2010 at 4:41
Copied from original issue: damonkohler/android-scripting#391
From @GoogleCodeExporter on May 31, 2015 11:27
I have the same problem. How did you block ttsSpeak? Thanks
Original comment by [email protected]
on 18 Aug 2010 at 4:55
From @GoogleCodeExporter on May 31, 2015 11:27
It's just a quick & dirty solution. I made a function "say()" that first calls
ttsSpeak() and than calls time.sleep(0.5) in while ttsIsSpeaking() is true. HTH
Original comment by [email protected]
on 19 Aug 2010 at 5:05