Asked — Edited

Wondering

My project is doing some very weird things with the speech recognition. If I post my project this evening would anyone mind taking a peek at it?

      Thanks.  Chris


ARC Pro

Upgrade to ARC Pro

ARC Pro will give you immediate updates and new features needed to unleash your robot's potential!

#1  

Ya, post it. Members here seem to always be interested in helping. Make sure to let us know what's going on that you need looked at.

#2  

When I give a speech command my first line is always ControlCommand() pause speech. Do action. Sleep 10000, un pause speech recognition. In the middle the speech recognition is being un paused... even if I manually check the box to pause speech recognition it sometimes unpauses somehow and then hears something random, bird chirp ex...and it starts doing an unrelated action. I purposely made a shutdown one command to shut the robot down. For some reason that’s what it thinks it hears when a bird chirps. ( bird chirp is just a random example).

#3  

Have you done the Windows voice recognition training? You may want to retrain it to your voice even if you have. It sounds to me like the voice model may be bad.

#5  

Alan I would normally agree with you.... however even when manually checking the speech recognition pause box something in pauses it. It should only unpause with "robot pay attention command" and approximately 10 seconds after every command. Take a look and tell me what you think. And yes there are some components that are not being used ie bing speech and all of the "cognitive" services. Thanks guys Chris

#6  

It's your enable phrase and disable phrase in speech rec control that is causing the problem... i leave mine blank so the robot doesn't hear itself... because sometimes it enables speech rec while it's talking for whatever reason...

#7  

Hey Richard thanks for the reply.... it did not fix it. I guess what I don't understand is if I pause speech recognition it should be paused. Nothing should take it out of pause unless I physically in-pause it.

PRO
USA
#8  

@kamaroman68,

Speech Recognition Control

When the control is loaded, the control initializes the speech recognition, and the speech grammar is loaded with the existent: enable phrase, disable phrase, phrase list. The pause speech checkbox is irrelevant. The speech recognition is started and will fire a PhraseRecognized event when the SR catches a phrase.

Phrase Recognized event

When you load a Speech Grammar (i.e. Phrases) you are telling the engine what you expect. Every sound, noise or phrases are matched with existent Grammar, and a confidence level is reached. If the SR has something will fire the event with a phrase and a confidence level. There are many false positives, one example "Robot bla bla" is matched with "Robot Stop" and a confidence 0.51.

How is the Phrase Recognized event handled ?

  1. Variables Confidence and Phrase (i.e. $SpeechConfidence and $SpeechPhrase) will be assigned with the Event's Confidence & Phrase values.

Note 1: Pause checkbox state is irrelevant. Note 2: If you are monitoring the Phrase variable you should check the confidence level, otherwise a low level confidence will trigger an action.

Only one condition will be met (A or B or C or D):

A) Event.Confidence < Configuration.Confidence


Outputs Event's Phrase, the word &quot;Low&quot; and confidence level

IF the Pause checkbox is checked e.g. paused the event process terminates here.

Low confidence script is executed.

B) Event.Phrase == Enable Phrase


Outputs &quot;Enabled&quot; in the control debug area

Pause checkbox is unchecked

Executes the Enable Cmd Script.

Note: Does not matter if the Checkbox is already checked or not

C) Event.Phrase == Disable Phrase


Outputs &quot;Disabled&quot; in the control debug area

Pause Checkbox is checked

Executes the Disable Cmd Script.

Note: Does not matter if the Checkbox is already checked or not

D) Pause Checkbox is not checked i.e. it's not paused.


Outputs Event's Phrase and confidence level

Matches the Phrase and Executes the correspondent script

PRO
USA
#9  

@kamaroman68

  1. I agree with Richard R if you have an Enable and/or Disable Phrase will be matched to all Speech Recognition events. Note: Remember there are a lot of false positives.

  2. Pause Commands and Checkbox have the same behavior.

  3. When a Say command is executed, the speech recognition engine (not the checkbox) is paused and is resumed when the speech synthesizer ends.

  4. SayEZB does not pause the recognition engine, so in your case, the SayEZB can interfere with the Enable/Disable phrase. Note: The Pause checkbox state is irrelevant

PRO
USA
#10  

@kamaroman68

Please fix the following script errors:

User-inserted image

User-inserted image

PRO
Synthiam
#11  

And... test scripts in the editor before assuming they work:) there is the ability to Run a script in the edit window to verify that it actually works.

#12  

@ptp You are efficient and thorough... I should have went farther into the project before chiming in... Nice find(s)...:) Also as @DJ mentioned it's a good idea to test your scripts for errors within the editor...