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.

Uses an on-device GenAI model to produce higher quality recognition results with broader language coverage, at the cost of slightly higher latency.

Note: This mode is only available on supported high-end devices. You can check availability by calling SpeechRecognizer.checkStatus on a recognizer configured with MODE_ADVANCED.

MODE_BASIC

public static final int MODE_BASIC = 0

Indicates the basic mode of the speech recognizer.

Uses the standard on-device speech recognition models (the same underlying engine that backs Android's on-device SpeechRecognizer), prioritizing low latency and broad device compatibility. Requires downloading language packs per locale.

Public constructors

Mode

public Mode()