Welcome to Synthiam!

Program robots using technologies created from industry experts. EZ-Builder is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.
Get Started

Australia
Asked
Resolved Resolved by ptp!

Waiting For Audio From Soundboard (PC) To Finish

Is there a way to wait for the end of an audio file from the Soundboard (PC) control? The following code does not wait but instead plays the file and says "done" simultaneously:

Code:

ControlCommand("Soundboard (PC)", Track_0)
WaitFor($EZBPlayingAudio = 0)
Say("done")

From my understanding, $EZBPlayingAudio is only applicable to sound coming from the EZB. As such, the following code works because it outputs from the EZB rather than the PC:

Code:

ControlCommand("Soundboard (EZB)", Track_0)
WaitFor($EZBPlayingAudio = 0)
Say("done")
Is there an equivalent $EZBPlayingAudio variable for the Soundboard (PC) control?


Related Hardware EZ-Robot JD Humanoid
Related Control Soundboard (PC)
Australia
#6  
@ptp the latest version I see is 5:

User-inserted image


and with an empty project it looks like this:

User-inserted image

#7  
@vincent.j:
I uploaded the new version (#6).
Australia
#9  
@ptp
Actually I've noticed that it occasionally crashes EZ-Builder when:
- Audio Session Tracking Mode = All
- An audio file playing through Soundboard (PC) is Stopped

Sometimes it happens on the first time I click Stop but other times, it'll take a while.
#10  
Thanks for the feedback.
Fixed
Australia
#11  
Awesome, it's working well now.
Thanks