Language

LanguageSwitchResult Enum

Definition

Specifies the result of an automatic speech recognition language switch.

public enum LanguageSwitchResult
type LanguageSwitchResult = 
Inheritance
LanguageSwitchResult

Fields

Name Value Description
NotAttempted 0

Switch not attempted.

Android reference for android.speech.SpeechRecognizer.LANGUAGE_SWITCH_RESULT_NOT_ATTEMPTED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Succeeded 1

Switch attempted and succeeded.

Android reference for android.speech.SpeechRecognizer.LANGUAGE_SWITCH_RESULT_SUCCEEDED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Failed 2

Switch attempted and failed.

Android reference for android.speech.SpeechRecognizer.LANGUAGE_SWITCH_RESULT_FAILED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SkippedNoModel 3

Switch skipped because the language model is missing or the language is not allowlisted for auto switch.

Android reference for android.speech.SpeechRecognizer.LANGUAGE_SWITCH_RESULT_SKIPPED_NO_MODEL.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

These values identify whether a language switch was not attempted, succeeded, failed, or was skipped because a model was missing or the language was not allowed for automatic switching.

Source implementation.

Applies to