예제 #1
0
        public void GetAnswer()
        {
            RecognitionResult recognition;

            do
            {
                recognition = pSRE.Recognize();
            } while (!RecognitionValidator.CorrectlyRecognized(recognition));
        }
예제 #2
0
        public static string GetAnswer(SpeechRecognitionEngine pSRE)
        {
            RecognitionResult recognition;

            do
            {
                recognition = pSRE.Recognize();
            } while (!RecognitionValidator.CorrectlyRecognized(recognition));
            return(recognition.Text);
        }