Dela via


SpeechRecognizer.DetectedLanguage Field

Definition

Key used to retrieve a String representation of the IETF language tag (as defined by BCP 47, e.

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

Field Value

Attributes

Remarks

Key used to retrieve a String representation of the IETF language tag (as defined by BCP 47, e.g., "en-US", "de-DE") of the detected language of the most recent audio chunk.

This info is returned to the client in the Bundle passed to RecognitionListener#onLanguageDetection(Bundle) only if RecognizerIntent#EXTRA_ENABLE_LANGUAGE_DETECTION is set. Additionally, if RecognizerIntent#EXTRA_LANGUAGE_DETECTION_ALLOWED_LANGUAGES are listed, the detected language is constrained to be one from the list.

Java documentation for android.speech.SpeechRecognizer.DETECTED_LANGUAGE.

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