// Use this for initialization void Start() { speechPlugin = SpeechPlugin.GetInstance(); speechPlugin.SetDebug(0); textToSpeechPlugin = TextToSpeechPlugin.GetInstance(); textToSpeechPlugin.SetDebug(0); textToSpeechPlugin.LoadLocaleCountry(); textToSpeechPlugin.LoadCountryISO2AlphaCountryName(); textToSpeechPlugin.Init(); textToSpeechPlugin.SetTextToSpeechCallbackListener(OnInit, OnGetLocaleCountry, OnSetLocale, OnStartSpeech, OnDoneSpeech, OnErrorSpeech); CheckTTSDataActivity(); }
// Use this for initialization void Start() { speechPlugin = SpeechPlugin.GetInstance(); speechPlugin.SetDebug(0); textToSpeechPlugin = TextToSpeechPlugin.GetInstance(); textToSpeechPlugin.SetDebug(0); textToSpeechPlugin.LoadLocaleCountry(); textToSpeechPlugin.LoadCountryISO2AlphaCountryName(); textToSpeechPlugin.Init(); textToSpeechPlugin.SetTextToSpeechCallbackListener(OnInit,OnGetLocaleCountry,OnSetLocale,OnStartSpeech,OnDoneSpeech,OnErrorSpeech); CheckTTSDataActivity(); }