You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//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.
53
+
/**
54
+
* Sets the text-to-speech language.
55
+
* 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.
56
+
* @param loc Specifying the language to speak
57
+
* @return 0 Denotes the language is available for the language by the locale, but not the country and variant.
58
+
* <li> 1 Denotes the language is available for the language and country specified by the locale, but not the variant.
59
+
* <li> 2 Denotes the language is available exactly as specified by the locale.
60
+
* <li> -1 Denotes the language data is missing.
61
+
* <li> -2 Denotes the language is not supported.
62
+
*/
49
63
publicintsetLanguage(Stringloc) {
50
64
// The Int values will be returned
51
65
// Code indicating the support status for the locale. See LANG_AVAILABLE, LANG_COUNTRY_AVAILABLE, LANG_COUNTRY_VAR_AVAILABLE, LANG_MISSING_DATA and LANG_NOT_SUPPORTED.
0 commit comments