Wait in Windows problem with play audioClip and revSpeak

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
eulexic
Posts: 2
Joined: Fri Sep 23, 2016 2:52 am
Location: Soquel, Ca.
Contact:

Wait in Windows problem with play audioClip and revSpeak

Post by eulexic » Fri Sep 23, 2016 3:32 am

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.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2141
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Wait in Windows problem with play audioClip and revSpeak

Post by jmburnod » Thu Sep 29, 2016 6:02 pm

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

eulexic
Posts: 2
Joined: Fri Sep 23, 2016 2:52 am
Location: Soquel, Ca.
Contact:

Re: Wait in Windows problem with play audioClip and revSpeak

Post by eulexic » Tue Oct 04, 2016 9:00 pm

Thank you so much for your reply to my post!
The "send ... to me in ... milliseconds" makes the script stall / freeze.

Post Reply

Return to “Windows”