Asked
— Edited
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.
@ 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.
@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.
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
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
Sound servo (EZB Playback)
See screen shot. The one I use is circled.
Dont work, level and Variable are ever 0
@lizpoir.
Do you have the latest version of ARC installed? I only ask as there was an issue a while ago which has since been fixed. Link for the sound servo thread below...
https://synthiam.com/Community/Questions/8649
Yes, i have ARC from today
$Soundv4Value is ever 0