Serial Toolbox icon Serial Toolbox — EZB UART parser and Serial-TCP bridge to connect EZ-Robot cameras via Teensy USB, enabling ARC camera control and USB-to-serial bridging. Try it →
New Zealand
LinkedIn Thingiverse Twitter Google+ YouTube
Asked — Edited
1 Participant

Saywait Command Not Releasing

I have been using the SayWait command for a bit but notice since my last update that it is not releasing the hold it puts on recognition after it has finished speaking.

Example: SayWait("Hello, I am a robot")

I speak my command and my bot responds but then refuses to recognise any others.

There are not warnings or errors in the de-bug....

Have i missed something?

Is there now an 'unwait' command or something as I note the Speech Recognition command has a timer attached...? Example: ControlCommand( "Speech Recognition", PauseMS, 3000)

Any ideas anyone?


ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

Author Avatar
New Zealand
LinkedIn Thingiverse Twitter Google+ YouTube
#1  

Found it! ....

Seems that if you use the halt() command immediately after the saywait command it does not release before the script is finished so stays locked in the wait mode preventing speech recognition from working after exiting the script.

In the example below if the variable $audible_menus is 'On' the script exits after the statement and speech recognition works but the alternative it does not and speech recognition is locked out.

if ($audible_menus="On" ) Say ("Cancelled as requested" ) Else Saywait ("Cancelled." ) Endif halt()

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#2  

I'll take a look:)