SpeechRecognizer.CreateOnDeviceSpeechRecognizer(Context) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Factory method to create a new SpeechRecognizer
.
[Android.Runtime.Register("createOnDeviceSpeechRecognizer", "(Landroid/content/Context;)Landroid/speech/SpeechRecognizer;", "", ApiSince=31)]
public static Android.Speech.SpeechRecognizer CreateOnDeviceSpeechRecognizer (Android.Content.Context context);
[<Android.Runtime.Register("createOnDeviceSpeechRecognizer", "(Landroid/content/Context;)Landroid/speech/SpeechRecognizer;", "", ApiSince=31)>]
static member CreateOnDeviceSpeechRecognizer : Android.Content.Context -> Android.Speech.SpeechRecognizer
Parameters
- context
- Context
in which to create SpeechRecognizer
Returns
a new on-device SpeechRecognizer
.
- Attributes
Remarks
Factory method to create a new SpeechRecognizer
.
Please note that #setRecognitionListener(RecognitionListener)
should be called before dispatching any command to the created SpeechRecognizer
, otherwise no notifications will be received.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.