最終更新:2021-12-27 (月) 11:29:48 (850d)  

android.speech.RecognizerIntent
Top / android.speech.RecognizerIntent

https://developer.android.com/reference/android/speech/RecognizerIntent

定数

  • Android/APIレベル8RecognizerIntent.ACTION_GET_LANGUAGE_DETAILSA 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?.
    Android/APIレベル3RecognizerIntent.ACTION_RECOGNIZE_SPEECHStarts an activity that will prompt the user for speech and send it through a speech recognizer.
    Android/APIレベル16RecognizerIntent.ACTION_VOICE_SEARCH_HANDS_FREE?Starts an activity that will prompt the user for speech without requiring the user's visual attention or touch input.
    Android/APIレベル3RecognizerIntent.ACTION_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.
    Android/APIレベル8RecognizerIntent.DETAILS_META_DATA?Meta-data name under which an Activity implementing ACTION_WEB_SEARCH? can use to expose the class name of a BroadcastReceiver which can respond to request for more information, from any of the broadcast intents specified in this class.
    Android/APIレベル31RecognizerIntent.EXTRA_AUDIO_INJECT_SOURCE?The extra key used in an intent which is providing an already opened audio source for the RecognitionService? to use.
    Android/APIレベル8RecognizerIntent.EXTRA_CALLING_PACKAGE?The extra key used in an intent to the speech recognizer for voice search.
    Android/APIレベル14RecognizerIntent.EXTRA_CONFIDENCE_SCORES?A float array of confidence scores of the recognition results when performing ACTION_RECOGNIZE_SPEECH.
    Android/APIレベル3RecognizerIntent.EXTRA_LANGUAGEOptional IETF language tag (as defined by BCP 47), for example "en-US".
    Android/APIレベル3RecognizerIntent.EXTRA_LANGUAGE_MODEL?Informs the recognizer which speech model to prefer when performing ACTION_RECOGNIZE_SPEECH.
    Android/APIレベル8RecognizerIntent.EXTRA_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".
    Android/APIレベル3RecognizerIntent.EXTRA_MAX_RESULTS?Optional limit on the maximum number of results to return.
    Android/APIレベル8RecognizerIntent.EXTRA_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.
    Android/APIレベル14RecognizerIntent.EXTRA_ORIGIN?Optional value which can be used to indicate the referer url of a page in which speech was requested.
    Android/APIレベル8RecognizerIntent.EXTRA_PARTIAL_RESULTS?Optional boolean to indicate whether partial results should be returned by the recognizer as the user speaks (default is false).
    Android/APIレベルRecognizerIntent.EXTRA_PREFER_OFFLINEOptional 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.
    Android/APIレベル3RecognizerIntent.EXTRA_PROMPT?Optional text prompt to show to the user when asking them to speak.
    Android/APIレベル3RecognizerIntent.EXTRA_RESULTS?An ArrayList<String> of the recognition results when performing ACTION_RECOGNIZE_SPEECH.
    Android/APIレベル3RecognizerIntent.EXTRA_RESULTS_PENDINGINTENT?When the intent is ACTION_RECOGNIZE_SPEECH, the speech input activity will return results to you via the activity results mechanism.
    Android/APIレベル3RecognizerIntent.EXTRA_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.
    Android/APIレベル16RecognizerIntent.EXTRA_SECURE?Optional boolean to indicate that a "hands free" voice search was performed while the device was in a secure mode.
    Android/APIレベル8RecognizerIntent.EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS?The amount of time that it should take after we stop hearing speech to consider the input complete.
    Android/APIレベル8RecognizerIntent.EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS?The minimum length of an utterance.
    Android/APIレベル8RecognizerIntent.EXTRA_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.
    Android/APIレベル8RecognizerIntent.EXTRA_SUPPORTED_LANGUAGES?The key to the extra in the Bundle returned by ACTION_GET_LANGUAGE_DETAILS which is an ArrayList of Strings that represents the languages supported by this implementation of voice recognition - a list of strings like "en-US", "cmn-Hans-CN", etc.
    Android/APIレベル11RecognizerIntent.EXTRA_WEB_SEARCH_ONLY?Optional boolean, to be used with ACTION_WEB_SEARCH?, to indicate whether to only fire web searches in response to a user's speech.
    Android/APIレベル3RecognizerIntent.LANGUAGE_MODEL_FREE_FORM?Use a language model based on free-form speech recognition.
    Android/APIレベル3RecognizerIntent.LANGUAGE_MODEL_WEB_SEARCH?Use a language model based on web search terms.
    Android/APIレベル3RecognizerIntent.RESULT_AUDIO_ERROR?Result code returned when an audio error was encountered
    Android/APIレベル3RecognizerIntent.RESULT_CLIENT_ERROR?Result code returned when there is a generic client error
    Android/APIレベル3RecognizerIntent.RESULT_NETWORK_ERROR?Result code returned when a network error was encountered
    Android/APIレベル3RecognizerIntent.RESULT_NO_MATCH?Result code returned when no matches are found for the given speech
    Android/APIレベル3RecognizerIntent.RESULT_SERVER_ERROR?Result code returned when the recognition server returns an error

メソッド