void Record_Released(object sender, System.EventArgs e) { if (recognizer != null) { recognizer.Stop(); recognizer.SpeechRecognized -= SpeechReceived; recognizer = null; } }