United Kingdom
Asked — Edited

Waitforspeech Question

I have a problem using WaitForSpeech - I wonder if you could please advise DJ?

On my Win7 computer it does not work at all - there is no timeout the seconds variable gets ignored and the WaitForSpeech just runs through without a wait? I do see the timeout box very briefly. General SR works on this Win7 computer but I can only use it on US and not GB.

On my Win10 computer the same script works perfectly and the timeout window stays on the screen and counts down, so there is no problem here?

On the Win7 computer I then updated to the latest release (in case it was a previous bug) but this has made no difference.

Here is the script in question (which I borrowed from Rich)


:start
SayWait("What is 4 times 4")
$response = WaitForSpeech(10, "10", "12", "14", "16")
If($response = "16")
  SayWait("Corect")
  Goto(nextquestion)
Else
  SayWait("sorry that is incorrect, please try again")
  Goto(start)
EndIf
:nextquestion

Here is screendump of bottom of the Win7 screen.

User-inserted image

Thanks for your help

Tony


ARC Pro

Upgrade to ARC Pro

Discover the limitless potential of robot programming with Synthiam ARC Pro – where innovation and creativity meet seamlessly.

PRO
Synthiam
#9  

@tony, append this request to my previous question. Can you also post the project on here that is giving the trouble? The project can be posted using the ATTACH FILE feature to the right of the edit area.

Please send the project file from the windows 7 machine. Do not send a duplicate copy of the file from another computer.

thanks

PRO
Synthiam
#10  

@tony, one last request (totaling three). It appears the copy of ARC on that machine is a few months old. Can you update it?

please respond to each of the three requests - thanks!

#11  

I don't know if this will help or is even related. I got that "Strange " while compiling error a number of times a few days ago when I was rewriting scripts. I assumed it was just my poor scripting skills but when I couldn't find any issues and I haven't seen it pop up again after those few times.

PRO
Synthiam
#12  

That error can appear if there's a missing GOTO, missing LABEL, missing IF, missing ENDIF, missing ELSEIF, missing ELSE, missing ENDREPEAT, etc..

But, in that specific case, it will actually say the reason - which would be something like "MISSING ENDIF". Such as in your case.

So far, @tony is the person to have created an error that i cannot trace. Mostly due to the fact the ARC instance is a few months old. Once @tony upgrades to the recent version, then i will be able to begin tracing the origin.

PRO
United Kingdom
#14  

Thanks again DJ for this ongoing help.

I use 3 computers here using ARC, the Win7 PC that exhibits this problem has Version 2017.02.05.00 so it was the latest until this release. I have now updated to your latest debug version and the issue is still there.

I cannot find the ATTACH FILE feature that you mentioned, is it the .rtf file that you are looking for?

I can confirm that the script is not running via a controlcommand

Tony

#15  

DJ was referring to the attach file in the forum. It will allow you to upload the file from your computer.

#16  

@Tony... DJ is referring to uploading your ARC project to the forum here (using a post) just like you would when you "attach" and upload pictures... It's below the UBB Code editor to the right of the reply box... Attach File