Award
Congratulations Rich, 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.

Limitations With Sayezb Command?

Assistance Requested

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

WayneA claims to have checked these sources:
 
#1

Good Evening,

I am a new with Ez-Robot. I am impressed. My question is trying to get the onboard sound to say something with in a string value. Can EZ-Builder 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!


#2

Hello Yes EZ-Builder can do that easy Smile

#3

You can download EZ-Builder for free and play with it no need to have an EZ-B to use EZ-Builder
I spent most of my time playing with it with out powering up my robot and I get it to say all kinds of things using the Say("$Your_String_Here"Winky command.

I LOVE IT
Its just to EZ
some times its hard for me to get it to shut up Winky lol

#4

Try this...

Code:


$value="I am a robot"

SayEzb{$value) #out the EZB4 board speaker

Say($value) #out through your PC speakers

#5

Or a more complex example...

Code:


$temperature = HTTPGet("http://192.168.0.100/temp.cgi";)
$voltage = GetADC(ADC0)

SayEZB("Good morning, it is " + $time + " it is " + $temperature + " degrees outside.")
SayEZB("Your battery is holding " + $voltage + " volts")

#6

Good show, Rich!

#7

Wow! Thank You for the assistance! That was quick!

#8

Any idea on how to have the text being sent to a second EZB's audio output?

#9

As far as I can tell, the SayEZB script command only works on board 0 like Movement Panel commands.

If you have pre-recorded utterances, than the SoundServoEZB can be defined to use different boards and you can trigger them with ControlCommand script commands.

Being able to direct speech to a particular board (or defining a Movement Panel to something other than board 0) would be helpful on larger bots where one EZ-B needs to be in the body to control wheels but another can be in the head producing speech.

Alan

#10

Maybe an optional parameter can be added to the say command. Or a plugin that accepts a ControlCommand()