Asked — Edited
Resolved Resolved by thetechguru!

How To Stop Mp3 Playing

I'm teaching my robot to dance. It dances well, with sound servo v4 and mp3 files. I need to stop mp3 playing, to give other commands or play other music. The only way to do that I found is the stop button in the soundboard v4 control itseIf. I need to use some command , such as a speech recognition command. How to do that ?


ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

#1  

The ez robot A.I Support Robot answered your question for you under Soundboard(PC/EZB) link... Then check the Soundboard PC & Soundboard EZ-B tutorial... It's extremely easy to do...

#2  

I saw the tutorials, etc. I already have the robot dancing with mp3 and sound servo. I start it by a speech recognition command. I know all that's needed for that. I only need to know some script I can use to stop the mp3, without having to wait for the whole performance to end , or having to push the stop command in the soundboard control itself.

#3  

You use a ControlCommand to stop the recording. It is covered in the tutorial. Specifically, the bottom of step 3: https://synthiam.com/Tutorials/UserTutorials/168/3

Alan

#4  

You would add a script to stop your sound board like this:


#PC Sound Board
ControlCommand("Soundboard", Stop)

#EZb4 Sound Board
ControlCommand("Soundboard", Stop)

Remember when you have a control added to your project, if you click on the Cheat Sheet tab from EZ-Script window it will show you available script example options for your control item, including the sound board. You can then click on the example line to add it to your script.

#5  

OK. Alan , you solved my problem. I know the answer is somewhere in the dozens of tutorials, threads, etc. But it's hard to find there exactly what I need to know , among a lot of useless or well-known information. Only an expert (or a guru...) can easily show the right way.

#6  

Sorry, Justin, your answer was perfect, but arrived late. I had already granted Alan as problem solver. Thank you.

PRO
Synthiam
#7  

@Leonardo, the AI response had a good suggestion to learn about the ControlCommand(). It is an important part of the communication layer for ARC. Here's a great and educational read: https://synthiam.com/Tutorials/Lesson/78

Enjoy!