FileDocCategorySizeDatePackage
Recognition.javaAPI DocAndroid 5.1 API2512Thu Mar 12 22:22:48 GMT 2015com.android.common.speech

Recognition

public class Recognition extends Object
Utilities for voice recognition implementations.
see
android.speech.RecognitionService
see
android.speech.RecognizerIntent

Fields Summary
public static final String
EXTRA_HINT_STRINGS
The key to the extra in the Bundle returned by android.speech.RecognizerIntent#ACTION_GET_LANGUAGE_DETAILS which is an ArrayList of CharSequences which are hints that can be shown to the user for voice actions currently supported by voice search for the user's current language preference for voice search (i.e., the one defined in the extra android.speech.RecognizerIntent#EXTRA_LANGUAGE_PREFERENCE). If this is paired with EXTRA_HINT_CONTEXT, should return a set of hints that are appropriate for the provided context. The CharSequences are SpannedStrings and will contain segments wrapped in . This is to indicate the section of the text which represents the voice action, to be highlighted in the UI if so desired.
public static final String
EXTRA_HINT_CONTEXT
The key to an extra to be included in the request intent for android.speech.RecognizerIntent#ACTION_GET_LANGUAGE_DETAILS. Should be an int of one of the values defined below. If an unknown int value is provided, it should be ignored.
public static final int
HINT_CONTEXT_UNKNOWN
A set of values for EXTRA_HINT_CONTEXT.
public static final int
HINT_CONTEXT_VOICE_SEARCH_HELP
public static final int
HINT_CONTEXT_CAR_HOME
public static final int
HINT_CONTEXT_LAUNCHER
Constructors Summary
private Recognition()


       
Methods Summary