(AGK version: 2017.12.12)
Submitted: 2018-02-08 22:19:52
answer=1      // initialize answer to prime WHILE loop
speak(passText$)    // passText$ = text you want to pass to speak()
// WHILE loop allows speech to finish before processing the next command
while answer = 1 
 
    answer = IsSpeaking()  // while TTS is talking answer = 1 so WHILE LOOP persists
                           // when TTS is finished IsSpeaking will pass a 0 back to
                           // answer thus ending the WHILE LOOP

endwhile
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.