Hello,
I am building an app and everything was going right until I needed the "When TextToSpeech.AfterSpeaking" event (part of TextToSpeech associated functions). I've understood that it's supposed to trigger some actions when the text has been totally spoken. It's quite more practical than timer, especially when we don't know in advance the time it will take to speech the text.
The issue is that AI2 does not want to execute DO instructions placed inside the event.
I've tried 2 ways :
1) Using a global variable (flag) set by the AfterSpeaking event
2) Using the result provided by AfterSpeaking event
Then to prevent the program to go further on next line, I've put a while do loop test these flag.
Maybe I'm totally wrong on the way to handle that : please help.
I also have the same kind of issue with the "AfterGettingText" in SpeechRecognizer.
Thanks in advance for your help.
Best regards,
Arnaud