Hello everyone, I also want to try to make an extension
Community opinion is very important for me.
This is an alternate version of the Voice Recognition Component
- Ability to disable the Google dialogue,
- Turn off the sound prompt signal,
- Continuous listening (hands free),
Can be used in robots, running Android; Voice assistants and etc.
New properties (default all is false):
EnableGoogleDialog (boolean) - if “true”, then the recognition works in normal mode. No additional features (described below) is working.
MuteAudio (boolean) - if is “true”, then Google prompt sound signal are disabled before and after recognition. In reality, all sounds are turned off, but only for the duration of the listening. That, after recognition, or recognition errors, the sound immediately turns on.
ContinuouslyRecognitionEnabled (boolean) – in case the “false”, if the user is silent, the component will return an empty string result and generate “No voice input” error. Otherwise, the audition just automatically resumes every time. A related error does not occur.
PreferOffLine (boolean) - if “true to indicate whether to only use an offline speech recognition engine. The default is false, meaning that either network or offline recognition engines may be used. (Starting with Android version 6.0).
LastError (String) read-only - A description of the errors is stored here, if they occurred during the last recognition. When you start a new service, this information is erased.
ExtraPrompt (String) - when the Google dialog is displayed, the inscription on it can be replaced with its own. If there is an empty line in its field, then the inscription remains Google.
StopASR () - used to forcefully stop the Continuously Recognition process.
OnError () - when error of recognizing is occur, the user receive the description and saves it in LastError.
“Audio recording error”
“Client side error”
“No speech input”, “No match” (automatic restart in the Continuously Recognition mode )
“Error from server”
“Didn’t understand, please try again”
“Speech Recognizer not Available!”
New in the Version 3:
New Properties KeepScreenOn (Boolean, default is False) - If you app window is visible to the user, keep the device’s screen turned on and bright
New Event OnRmsChanged Event occurs when Microphone input is change. Gives an integer 0…10. It is used to dynamically indicate the microphone status in the voice recognition process.