Congratulations thetechguru, for answering the question and has received an EZ-Credit award! Share what you have learned and create a tutorial to help others by clicking here.

How To Stop Mp3 Playing

Assistance Requested

Help leonardo46 with their question and receive $10 of EZ-Credit to get more robots and parts from our store. The following information was provided about their previous efforts searching tutorials for a resolution.

Product: (click to view product details)

EZ-Builder Controls: (click to view manual page)

leonardo46 claims to have checked these sources:

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 ?

I have found a few conversations, tutorials and activities that may help with your question. Take a look at these links. I've sorted them by what I believe to be most relevant but that is not always the case as I'm still learning.

Also, consider reviewing the Learn section for informative lessons and activities. Check it out!


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...


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.


You use a ControlCommand to stop the recording. It is covered in the tutorial. Specifically, the bottom of step 3:



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.


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.


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


@Leonardo, the AI response had a good suggestion to learn about the ControlCommand(). It is an important part of the communication layer for EZ-Builder. Here's a great and educational read: