SpeechRecognizerOptions.Mode

@IntDef(value = [0, 1])
@Retention(value = AnnotationRetention.BINARY)
public annotation SpeechRecognizerOptions.Mode


Defines options for execution mode.

Mode constants - enumeration of supported Mode:

Summary

Constants

static final int

Indicates the advanced mode of the speech recognizer.

static final int

Indicates the basic mode of the speech recognizer.

Public constructors

Constants

MODE_ADVANCED

public static final int MODE_ADVANCED = 1

Indicates the advanced mode of the speech recognizer. It will use the on-device GenAI model if available. It will run slightly slower however produces higher quality results with better language coverage.

Note: This mode is only available on limited high end devices. You could check the availability by calling checkFeatureStatus() in SpeechRecognizer which is configured as MODE_ADVANCED.

MODE_BASIC

public static final int MODE_BASIC = 0

Indicates the basic mode of the speech recognizer. By default it will use the SpeechRecognizer that publicly available in Android.

Public constructors

Mode

public Mode()