Example #1
0
 void StartSpeechRecognition()
 {
     using (var memoryStream = new MemoryStream(
                Encoding.ASCII.GetBytes(Properties.Resources.SpeechGrammar))) {
         speechManager = SpeechManager.Create(kinectSensor.AudioSource.Start(), memoryStream);
         if (speechManager != null)
         {
             speechManager.SpeechRecognized += SpeechRecognized;
             speechManager.Start();
         }
     }
 }