Dela via


SpeechRecognizer.IsOnDeviceRecognitionAvailable(Context) Method

Definition

Checks whether an on-device speech recognition service is available on the system.

[Android.Runtime.Register("isOnDeviceRecognitionAvailable", "(Landroid/content/Context;)Z", "", ApiSince=31)]
public static bool IsOnDeviceRecognitionAvailable (Android.Content.Context context);
[<Android.Runtime.Register("isOnDeviceRecognitionAvailable", "(Landroid/content/Context;)Z", "", ApiSince=31)>]
static member IsOnDeviceRecognitionAvailable : Android.Content.Context -> bool

Parameters

context
Context

with which on-device SpeechRecognizer will be created

Returns

true if on-device recognition is available, false otherwise

Attributes

Remarks

Checks whether an on-device speech recognition service is available on the system. If this method returns false, SpeechRecognizer#createOnDeviceSpeechRecognizer(Context) will fail.

Java documentation for android.speech.SpeechRecognizer.isOnDeviceRecognitionAvailable(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