Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.

Get Started
Australia
Asked — Edited

How Can You Stop A Track Using Voice Command ?

I'm really enjoying the EZ-b voice recognition but can't seem to find an example of how to stop a music track once it starts playing. Can anyone help please ?

For example I say "Bob play The Eagles" and the track assigned plays which is really cool but I want to be able to stop it if I can to go onto a different command.

Any assistance much appreciated.


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

PRO
Synthiam
#1  
With the latest ARC, it can be done by using this syntax:

Code:


ControlCommand("Sound Board", Stop)
Australia
#3  
I gave that a try and it worked but only for a second, then the track would keep playing so I got the idea - why not use the command to send it to a track sound effect and that worked perfectly.:D
PRO
Synthiam
#4  
The stop command will stop any currently playing track. If it continues to play, your script is telling it to start again.