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