Beispiel #1
0
        public void SpeechStop()
        {
            if (synth != null)
            {
                synth.SpeechStop();
                synth = null;
            }

            if (recog != null)
            {
                recog.Stop();
                recog = null;
            }
        }
Beispiel #2
0
        public void RecogStart()
        {
            try
            {
                recog = new WinRecog();
                recog.Start();

                // Hook up event relay
                recog.OnWinRecognition +=
                    new SpeechEventHandler(recog_OnWinRecognition);
            }
            catch (Exception)
            {
                // No recognition on this platform
                recog = null;
            }
        }
Beispiel #3
0
        public void RecogStart()
        {
            try
            {
                recog = new WinRecog();
                recog.Start();

                // Hook up event relay
                recog.OnWinRecognition +=
                    new SpeechEventHandler(recog_OnWinRecognition);
            }
            catch (Exception)
            {
                // No recognition on this platform
                recog = null;
            }
        }
Beispiel #4
0
        public void SpeechStop()
        {
            if (synth != null)
            {
                synth.SpeechStop();
                synth = null;
            }

            if (recog != null)
            {
                recog.Stop();
                recog = null;
            }
        }