public void GetAnswer() { RecognitionResult recognition; do { recognition = pSRE.Recognize(); } while (!RecognitionValidator.CorrectlyRecognized(recognition)); }
public static string GetAnswer(SpeechRecognitionEngine pSRE) { RecognitionResult recognition; do { recognition = pSRE.Recognize(); } while (!RecognitionValidator.CorrectlyRecognized(recognition)); return(recognition.Text); }