Share via


SpeechRecognizer.CreateOnDeviceSpeechRecognizer(Context) Method

Definition

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.

Java documentation for android.speech.SpeechRecognizer.createOnDeviceSpeechRecognizer(android.content.Context).

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.

Applies to