SpeechRecognizerOptions.Mode

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


Defines options for execution mode.

Mode constants - enumeration of supported Mode:

Summary

Constants

const Int

Indicates the advanced mode of the speech recognizer.

const Int

Indicates the basic mode of the speech recognizer.

Public constructors

Constants

MODE_ADVANCED

const val MODE_ADVANCED = 1: Int

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

const val MODE_BASIC = 0: Int

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

Public constructors

Mode

Mode()