[BUG] pEvents_TextToSpeechFinish

salmander

Active Member
Licensed User
Longtime User
Hi all,

I have noticed that "_TextToSpeechFinish" event gets raised before the engine actually finishes speaking. For example;
B4X:
textToSpeak = "Hello Sir, The weather seems normal for today. Have a good day."

Sub speakText
   tts1.SetLanguage("en","GB")
   pEvents.Initialize("pEvents")
   tts1.Speak(textToSpeak, False)
End Sub

Sub pEvents_TextToSpeechFinish (Intent As Intent)
   ' tts finished, release the engine, and finish the service.
        tts1.Release
End Sub

So the tts only makes it to the "Have a " part and the event gets raised, hence, it stops speaking before actually finishing the sentence.
 
Top