Page 1 of 1

Wait in Windows problem with play audioClip and revSpeak

Posted: Fri Sep 23, 2016 3:32 am
by eulexic
This is my first time posting. But with this one, I don't know where to start. When I make a standalone in Windows the Wait Command is not working right. I have scripts that use run revSpeak and play audioClip. The audioClips seem to play simultaneously at the beginning of the sequence and not "waiting" until their proper time in the script.
So instead of hearing something like:
1. revSpeak "blah, blah, blah"
wait unit revIsSpeaking() is false.
2. play audioClip "LaLaLa.aiff"

I hear "LaLaLa" and "blah, blah, blah" at the same time.

Re: Wait in Windows problem with play audioClip and revSpeak

Posted: Thu Sep 29, 2016 6:02 pm
by jmburnod
Welcome to this forum,
I can't test (I work on a Mac) but I wonder what happends if you use a short send in time.
Something like that :

Code: Select all

...
revSpeak "blah, blah, blah" 
wait until revIsSpeaking() is false.
send "playMyAudio" to me in 10 milliseconds

on playMyAudio
   play audioClip "LaLaLa.aiff"
end playMyAudio
Best regards
Jean-Marc

Re: Wait in Windows problem with play audioClip and revSpeak

Posted: Tue Oct 04, 2016 9:00 pm
by eulexic
Thank you so much for your reply to my post!
The "send ... to me in ... milliseconds" makes the script stall / freeze.