Ejemplo n.º 1
0
        public void start()
        {
            vManager = ViewManager.getInstance();
            speech_suggestion_block = vManager.get_speech_suggestion_block();
            speechRecognizer = CreateSpeechRecognizer();
            if (speechRecognizer != null)
            {
                // NOTE: Need to wait 4 seconds for device to be ready to stream audio right after initialization
                this.readyTimer = new DispatcherTimer();
                this.readyTimer.Tick += this.ReadyTimerTick;
                this.readyTimer.Interval = new TimeSpan(0, 0, 4);
                this.readyTimer.Start();
                changeState(SRStates.GETTING_READY);
                //this.UpdateInstructionsText(string.Empty);

                //this.Closing += this.MainWindowClosing;
            }
        }