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)