Java android.speech RecognizerIntent fields, constructors, methods, implement or subclass

Example usage for Java android.speech RecognizerIntent fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.speech RecognizerIntent.

The text is from its open source code.

Field

StringEXTRA_CALLING_PACKAGE
The extra key used in an intent to the speech recognizer for voice search.
StringACTION_RECOGNIZE_SPEECH
Starts an activity that will prompt the user for speech and send it through a speech recognizer.
StringACTION_WEB_SEARCH
Starts an activity that will prompt the user for speech, send it through a speech recognizer, and either display a web search result or trigger another type of action based on the user's speech.
StringACTION_VOICE_SEARCH_HANDS_FREE
Starts an activity that will prompt the user for speech without requiring the user's visual attention or touch input.
StringEXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS
The minimum length of an utterance.
StringEXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS
The amount of time that it should take after we stop hearing speech to consider the input complete.
StringEXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS
The amount of time that it should take after we stop hearing speech to consider the input possibly complete.
StringEXTRA_LANGUAGE_MODEL
Informs the recognizer which speech model to prefer when performing #ACTION_RECOGNIZE_SPEECH .
StringLANGUAGE_MODEL_FREE_FORM
Use a language model based on free-form speech recognition.
StringLANGUAGE_MODEL_WEB_SEARCH
Use a language model based on web search terms.
StringEXTRA_PROMPT
Optional text prompt to show to the user when asking them to speak.
StringEXTRA_LANGUAGE
Optional IETF language tag (as defined by BCP 47), for example "en-US".
StringEXTRA_ORIGIN
Optional value which can be used to indicate the referer url of a page in which speech was requested.
StringEXTRA_MAX_RESULTS
Optional limit on the maximum number of results to return.
StringEXTRA_PARTIAL_RESULTS
Optional boolean to indicate whether partial results should be returned by the recognizer as the user speaks (default is false).
StringEXTRA_RESULTS_PENDINGINTENT
When the intent is #ACTION_RECOGNIZE_SPEECH , the speech input activity will return results to you via the activity results mechanism.
StringEXTRA_RESULTS_PENDINGINTENT_BUNDLE
If you use #EXTRA_RESULTS_PENDINGINTENT to supply a forwarding intent, you can also use this extra to supply additional extras for the final intent.
intRESULT_NO_MATCH
Result code returned when no matches are found for the given speech
intRESULT_CLIENT_ERROR
Result code returned when there is a generic client error
intRESULT_SERVER_ERROR
Result code returned when the recognition server returns an error
intRESULT_NETWORK_ERROR
Result code returned when a network error was encountered
intRESULT_AUDIO_ERROR
Result code returned when an audio error was encountered
StringEXTRA_RESULTS
An ArrayList<String> of the recognition results when performing #ACTION_RECOGNIZE_SPEECH .
StringEXTRA_CONFIDENCE_SCORES
A float array of confidence scores of the recognition results when performing #ACTION_RECOGNIZE_SPEECH .
StringACTION_GET_LANGUAGE_DETAILS
A broadcast intent which can be fired to the BroadcastReceiver component specified in the meta-data defined in the #DETAILS_META_DATA meta-data of an Activity satisfying #ACTION_WEB_SEARCH .
StringEXTRA_ONLY_RETURN_LANGUAGE_PREFERENCE
Specify this boolean extra in a broadcast of #ACTION_GET_LANGUAGE_DETAILS to indicate that only the current language preference is needed in the response.
StringEXTRA_LANGUAGE_PREFERENCE
The key to the extra in the Bundle returned by #ACTION_GET_LANGUAGE_DETAILS which is a String that represents the current language preference this user has specified - a locale string like "en-US".
StringEXTRA_SUPPORTED_LANGUAGES
The key to the extra in the Bundle returned by #ACTION_GET_LANGUAGE_DETAILS which is an ArrayList of String s that represents the languages supported by this implementation of voice recognition - a list of strings like "en-US", "cmn-Hans-CN", etc.
StringEXTRA_PREFER_OFFLINE
Optional boolean, to be used with #ACTION_RECOGNIZE_SPEECH , #ACTION_VOICE_SEARCH_HANDS_FREE , #ACTION_WEB_SEARCH to indicate whether to only use an offline speech recognition engine.