Share via


RecognizerIntent.ExtraLanguageSwitchAllowedLanguages Field

Definition

Optional list of IETF language tags (as defined by BCP 47, e.

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

Field Value

Attributes

Remarks

Optional list of IETF language tags (as defined by BCP 47, e.g. "en-US", "de-DE"). This extra is to be used with #EXTRA_ENABLE_LANGUAGE_SWITCH. If set, the recognizer will apply the auto switch only to these languages, even if the speech models of other languages also exist. The corresponding language models must be downloaded to support the switch. Otherwise, the recognizer will report an error on a switch failure.

Java documentation for android.speech.RecognizerIntent.EXTRA_LANGUAGE_SWITCH_ALLOWED_LANGUAGES.

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