Example #1
0
        public void Speak(string s)
        {
            if (speechSynthesis == null)
            {
                return;
            }

            if (speechRecognition != null)
            {
                speechRecognition.Pause();
            }
            speechSynthesis.Speak(s);
            if (speechRecognition != null)
            {
                speechRecognition.Resume();
            }
        }
Example #2
0
 public void SpeakCommand(string command)
 {
     speechRecognition.Pause();
     speechSynthesis.Speak(command);
     speechRecognition.Resume();
 }