RecognizerIntent.ExtraEnableLanguageSwitch Field

Definition

Optional string to enable automatic switching to the language being spoken with the desired sensitivity level, instead of being restricted to a single language.

[Android.Runtime.Register("EXTRA_ENABLE_LANGUAGE_SWITCH", ApiSince=34)]
public const string ExtraEnableLanguageSwitch;
[<Android.Runtime.Register("EXTRA_ENABLE_LANGUAGE_SWITCH", ApiSince=34)>]
val mutable ExtraEnableLanguageSwitch : string

Field Value

Attributes

Remarks

Optional string to enable automatic switching to the language being spoken with the desired sensitivity level, instead of being restricted to a single language. The corresponding language models must be downloaded to support the switch. Otherwise, the recognizer will report an error on a switch failure. The recognizer provides the switch results via RecognitionListener#onLanguageDetection(Bundle).

Since detection is a necessary requirement for the language switching, setting this value implicitly enables #EXTRA_ENABLE_LANGUAGE_DETECTION.

Depending on the recognizer implementation, this value may have no effect.

Java documentation for android.speech.RecognizerIntent.EXTRA_ENABLE_LANGUAGE_SWITCH.

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.

Applies to