Share via


SpeechRecognizer.TopLocaleAlternatives Field

Definition

Key used to retrieve an ArrayList<String> containing representations of the IETF language tags (as defined by BCP 47, e.

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

Field Value

Attributes

Remarks

Key used to retrieve an ArrayList&lt;String&gt; containing representations of the IETF language tags (as defined by BCP 47, e.g., "en-US", "en-UK") denoting the alternative locales for the same language retrieved by the key #DETECTED_LANGUAGE.

This info is returned to the client in the Bundle passed to RecognitionListener#onLanguageDetection(Bundle) only if RecognizerIntent#EXTRA_ENABLE_LANGUAGE_DETECTION is set.

Java documentation for android.speech.SpeechRecognizer.TOP_LOCALE_ALTERNATIVES.

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