Example usage for android.speech SpeechRecognizer isRecognitionAvailable

List of usage examples for android.speech SpeechRecognizer isRecognitionAvailable

Introduction

In this page you can find the example usage for android.speech SpeechRecognizer isRecognitionAvailable.

Prototype

public static boolean isRecognitionAvailable(final Context context) 

Source Link

Document

Checks whether a speech recognition service is available on the system.

Usage

From source file:com.todoroo.astrid.voice.VoiceRecognizer.java

public static boolean speechRecordingAvailable(Context context) {
    return ActFmPreferenceService.isPremiumUser() && AndroidUtilities.getSdkVersion() >= 8
            && SpeechRecognizer.isRecognitionAvailable(context);
}