Android.Speech.Tts.TextToSpeech.SetLanguage Method
Sets the text-to-speech language.

Syntax

[Android.Runtime.Register("setLanguage", "(Ljava/util/Locale;)I", "GetSetLanguage_Ljava_util_Locale_Handler")]
[return:Android.Runtime.GeneratedEnum]
public virtual LanguageAvailableResult SetLanguage (Java.Util.Locale loc)

Parameters

loc
The locale describing the language to be used.

Returns

Documentation for this section has not yet been entered.

Remarks

Sets the text-to-speech language. The TTS engine will try to use the closest match to the specified language as represented by the Locale, but there is no guarantee that the exact same Locale will be used. Use TextToSpeech.IsLanguageAvailable(Java.Util.Locale) to check the level of support before choosing the language to use for the next utterances. This method sets the current voice to the default one for the given Locale; TextToSpeech.Voice can be used to retrieve it.

[Android Documentation]

Requirements

Namespace: Android.Speech.Tts
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 4