Example #1
0
 private void UpdateSpeechLocaleSetting()
 {
     if (localeSlider != null)
     {
         SpeechLocale locale = (SpeechLocale)localeSlider.value;
         UpdateLocale(locale);
     }
 }
Example #2
0
 private void UpdateLocale(SpeechLocale locale)
 {
     if (localeText != null)
     {
         localeText.text = String.Format("Locale: {0}", locale);
         textToSpeechPlugin.SetLocale(locale);
     }
 }
Example #3
0
 public void OnLocaleSliderChange()
 {
     Debug.Log("[TextToSpeechDemo] OnLocaleSliderChange");
     if (localeSlider != null)
     {
         SpeechLocale locale = (SpeechLocale)localeSlider.value;
         UpdateLocale(locale);
     }
 }
Example #4
0
 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
 }
Example #5
0
 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
 }
Example #6
0
 private void UpdateLocale(SpeechLocale locale)
 {
     if(localeText!=null){
         localeText.text = String.Format("Locale: {0}",locale);
         textToSpeechPlugin.SetLocale(locale);
     }
 }