How do pause code while waiting on feedback from sound_play?
I have a little voice-recognition project going for myself where the system communicates through a listening node and a speaking node. The problem is that I can't figure out how to "pause" my code and wait for my speaking node to call on .say()
in sound_play
and finish speaking before my code can continue. Because as it is right it calls the .say() method and says what it's supposed to but the code just keeps on running ( listening ) while it's still saying it and I don't want that.
Any ideas?