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
United Kingdom
Asked — Edited
Resolved Resolved by JustinRatliff!

Speech When Moving

hello again all EZ beeers,

i have been having loads of fun but once again hit a wall, probably not a big wall for those of you out there with scripty skills, but for the programally challanged its a wall nontheless, so please be gentle.

what i want to do is have K9 speak when i ask him to do something

K9 move forward = Forward and play "track_0"

i have tried the following script

[code]ControlCommand(forward, track_0)[code]

with no luck.

what have i done wrong?

*confused*


ARC Pro

Upgrade to ARC Pro

ARC Early Access will give you immediate updates and new features needed to unleash your robot's potential!

AI Support Bot
Related Content
Synthiam
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
#1  
You need to do it in two line of code. So you need your speech command to call a script. Then in your script have the commands for moving forwards and playing the track separately.

Your speech command would be like this (you'll want a script manager - I highly recommend it) with a script in named "fwd_speech" or what ever you like.

Code:


ControlCommand("Script Manager", ScriptStart, "fwd_speech")


Then your "fwd_speech" script would include:

Code:


ControlCommand("SoundBoard", Track_0)
Forward()
PRO
Synthiam
#2  
You're on the right track using ControlCommand(), however you need to read the manual for proper syntax. If you do not know the syntax, use the Cheat Sheet tab and you can select the code that is already created for you.

Here is the link that explains how to use the Cheat Sheet functionality: Help
#3  
In a speech control script do this... You can have as many lines in a script as you want

Code:


ControlCommand("PC Sounds", Track_0) #Play whatever song or sound
forward() # K9 to move forward

United Kingdom
#4  
Thanks Justin, makes sense and all is calm again......
:D
United Kingdom
#5  
Thanks guys, the nudge from Justin was all that was needed. however does it make any difference if i used

Code:


ControlCommand("Soundboard",Track_0)


?
PRO
Synthiam
#6  
You can use what ever works for you:)
#7  
If you are asking about the name of the sound board, you can name it anything you like. Just make sure you use the name in the script as well.