public void SpeechStop() { if (synth != null) { synth.SpeechStop(); synth = null; } if (recog != null) { recog.Stop(); recog = null; } }
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; } }