Germany
Asked — Edited

2 Questions With Scripting

Hello from Germany, I have 2 problems when programming scripts and hope someone can help me.

Problem 1: Speech Recognition at Low Confidence, I want that the robot at low Cinfidence says he did not hear me, for that I have written the following script, which unfortunately will cause it always says he did not understand me correctly:


: start

WaitForChange($SpeechConfidence)

$SpeechConfidence < = ( 0.69 )

sayEZBWait("Entschuldigung, ich habe Dich nicht richtig verstanden")

GoTo(start)

Problem 2: I would like to start a script when the robot speaks, this, I wrote the following script but does not work:


:start

$sayEZBWait = "eingabe"

WaitForChange SayEZBWait("text to speech") 

if(SayEZBWait = ("true")

$z = 1

ElseIf (SayEZBWait = ("false")

$z = 0

EndIf 

if($z = 1)

ControlCommand("Script Manager", ScriptStart, "Start Körpersprache")

ElseIf ($z = 0)

ControlCommand("Script Manager", ScriptStart, "Stop Körpersprache")

endif

Goto (start)

Thanks for your Help

*edited by DJ Sures to put code in proper UBB tags so people can read it.


ARC Pro

Upgrade to ARC Pro

Unleash your robot's full potential with the cutting-edge features and intuitive programming offered by Synthiam ARC Pro.

Germany
#17  

@ DJ I follow the tutorial, but for Problem 2 there is no tutorial.

@ WBS00001 Thanks, now i have understand

@thetechguru Thats a good idea, i will testing.

#18  

@thetechguru Excellent! I had no idea that was the case. Have not had the need for the Sound servo component as yet. Great tricks and seems to be just what is needed in this situation. Thanks so much for the info. Definitely add that to my repertoire.

We need a "Tips and Tricks" section for this sort of good stuff. Things that are not broad enough for a full blown tutorial but really handy nonetheless.

#19  

I have a folder of bookmarked threads with little tips, links to hardware or software I might need in future builds, etc.. Of course, that only helps me;)

Alan

Germany
#20  

Alan, which sound servo do you use? There are yet no servo function operates at the SayEZB command. It's all the talk Servo, but who has no variable.

i think im to stupid.

Sven

#21  

Sound servo (EZB Playback)

See screen shot. The one I use is circled.

User-inserted image

Germany
#22  

Dont work, level and Variable are ever 0

Germany
#24  

Yes, i have ARC from today

$Soundv4Value is ever 0