Asked
— Edited
I feel like someone might have asked this before but would it be possible for the Speech Recognition control to provide as a variable the current command it "thinks" it heard ("robot turn left") along with the confidence (Low Confidence) and the confidence level ("0.77")?
I think access to these as variables would be very handy to use in other scripts.
The goal is to be able to script more logic and "smarts" for my (our) robots with access to those variables. A couple of examples of what we could do are:
If speech recognition has detected "robot turn left" repeatedly scripted logic could cause the robot to ask "Are you sure?".
If speech recognition has detected several commands with a lower confidence scripted logic could be created for the robot to say, "I'm having trouble hearing you."