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.
Wait in Windows problem with play audioClip and revSpeak
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Wait in Windows problem with play audioClip and revSpeak
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 :
Best regards
Jean-Marc
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
Jean-Marc
https://alternatic.ch
Re: Wait in Windows problem with play audioClip and revSpeak
Thank you so much for your reply to my post!
The "send ... to me in ... milliseconds" makes the script stall / freeze.
The "send ... to me in ... milliseconds" makes the script stall / freeze.