最終更新:2021-12-28 (火) 04:32:09 (822d)
android.speech.SpeechRecognizer
Top / android.speech.SpeechRecognizer
https://developer.android.com/reference/android/speech/SpeechRecognizer
Android/APIレベル
- Added in Android/APIレベル8 (Android 2.2)
オプション
メソッド
factory
static SpeechRecognizer SpeechRecognizer.createOnDeviceSpeechRecognizer?(Context context) Factory method to create a new SpeechRecognizer. static SpeechRecognizer SpeechRecognizer.createSpeechRecognizer?(Context context) Factory method to create a new SpeechRecognizer. static SpeechRecognizer SpeechRecognizer.createSpeechRecognizer?(Context context, ComponentName serviceComponent) Factory method to create a new SpeechRecognizer.
その他
SpeechRecognizer.setRecognitionListener?(RecognitionListener listener) Sets the listener that will receive all the callbacks. SpeechRecognizer.startListening(Intent recognizerIntent) Starts listening for speech. (引数:android.speech.RecognizerIntent)
定数
SpeechRecognizer.CONFIDENCE_SCORES? Key used to retrieve a float array from the Bundle passed to the RecognitionListener?#onResults(Bundle) and RecognitionListener?#onPartialResults?(Bundle) methods. SpeechRecognizer.ERROR_AUDIO? Audio recording error. SpeechRecognizer.ERROR_CLIENT? 5 Other client side errors. SpeechRecognizer.ERROR_INSUFFICIENT_PERMISSIONS? Insufficient permissions SpeechRecognizer.ERROR_LANGUAGE_NOT_SUPPORTED? 12 Requested language is not available to be used with the current recognizer. SpeechRecognizer.ERROR_LANGUAGE_UNAVAILABLE? 13 Requested language is supported, but not available currently (e.g. not downloaded yet). SpeechRecognizer.ERROR_NETWORK? Other network related errors. SpeechRecognizer.ERROR_NETWORK_TIMEOUT? Network operation timed out. SpeechRecognizer.ERROR_NO_MATCH? 7 No recognition result matched. SpeechRecognizer.ERROR_RECOGNIZER_BUSY? 8 RecognitionService? busy. SpeechRecognizer.ERROR_SERVER? 4 Server sends error status. SpeechRecognizer.ERROR_SERVER_DISCONNECTED? 11 Server has been disconnected, e.g. because the app has crashed. SpeechRecognizer.ERROR_SPEECH_TIMEOUT? No speech input SpeechRecognizer.ERROR_TOO_MANY_REQUESTS? Too many requests from the same client. SpeechRecognizer.RESULTS_RECOGNITION? Key used to retrieve an ArrayList<String> from the Bundle passed to the RecognitionListener?#onResults(Bundle) and RecognitionListener?#onPartialResults?(Bundle) methods.