private void UpdateSpeechLocaleSetting() { if (localeSlider != null) { SpeechLocale locale = (SpeechLocale)localeSlider.value; UpdateLocale(locale); } }
private void UpdateLocale(SpeechLocale locale) { if (localeText != null) { localeText.text = String.Format("Locale: {0}", locale); textToSpeechPlugin.SetLocale(locale); } }
public void OnLocaleSliderChange() { Debug.Log("[TextToSpeechDemo] OnLocaleSliderChange"); if (localeSlider != null) { SpeechLocale locale = (SpeechLocale)localeSlider.value; UpdateLocale(locale); } }
public void SetLocale(SpeechLocale speechLocale) { #if UNITY_ANDROID if (Application.platform == RuntimePlatform.Android) { int locale = (int)speechLocale; jo.CallStatic("setLocale", locale); } else { AUP.Utils.Message(TAG, "warning: must run in actual android device"); } #endif }
public void SetLocale(SpeechLocale speechLocale) { #if UNITY_ANDROID if(Application.platform == RuntimePlatform.Android){ int locale = (int)speechLocale; jo.CallStatic("setLocale",locale); }else{ AUP.Utils.Message(TAG,"warning: must run in actual android device"); } #endif }
private void UpdateLocale(SpeechLocale locale) { if(localeText!=null){ localeText.text = String.Format("Locale: {0}",locale); textToSpeechPlugin.SetLocale(locale); } }