public static VoiceManager GetInstance() {
   if (manager == null) {
     manager = new VoiceManager();
     manager.Init();
   }
   return manager;
 }
Esempio n. 2
0
 public static VoiceManager GetInstance()
 {
     if (manager == null)
     {
         manager = new VoiceManager();
         manager.Init();
     }
     return(manager);
 }
Esempio n. 3
0
        // ------------------------------------------
        //  Voice Management
        // ------------------------------------------

        public override void BeforeHandleVoice(String tts, bool sync)
        {
            base.BeforeHandleVoice(tts, sync);
            VoiceManager.GetInstance().Speak(tts, sync);
        }
Esempio n. 4
0
 public override void Dispose()
 {
     base.Dispose();
     VoiceManager.GetInstance().Dispose();
 }
Esempio n. 5
0
        // ------------------------------------------
        //  LIFE CYCLE
        // ------------------------------------------

        public override void Setup()
        {
            base.Setup();
            VoiceManager.GetInstance();
        }