Asked — Edited
Is it possible to insert a "control command" in a $variable?
ex: $Female= ControlCommand("Speech Settings", SetVoiceGender, "Female")
for now the result faults with "Missing String Quotes or Invalid Expression:"
Upgrade to ARC Pro
Your robot can be more than a simple automated machine with the power of ARC Pro!
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
I would instead make a $gender variable and use it in the control command, like this:
The variable within the ControlCommand() is working.
I am looking to simplified the use of ControlCommand() to switch gender in a script where I establish a dialog between my PC and EZB
here's an example:
ControlCommand("Speech Settings", SetVoiceGender, "Female")
Saywait("who are you?")
ControlCommand("Speech Settings", SetVoiceGender, "Male")
SayEZBwait("I am EZB ")
I am wondering if it's be possible to switch gender within the "Say" command.
By the way it's fun and plenty of possibility to listen both unit chanting together.
note: untested --
You'll have to do something like below...
Will your script work with that space inside the parentheses after the $g=WaitForSpeech( ?
Does EZ Script ignore spaces?
Spacing can be good for readability....
Your code example is working fine and will simplify my script.
Text file usage is also a great idea.
Tanks for your suggestion