leonardo46
Italy
Asked
— Edited
Resolved by thetechguru!
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 ?
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: https://synthiam.com/Tutorials/UserTutorials/168/3
Alan
You would add a script to stop your sound board like this:
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 ARC. Here's a great and educational read: https://synthiam.com/Tutorials/Lesson/78
Enjoy!