private void ProcessSpeechCommand(SR.SpeechRecognitionResult result)
 {
     if (result.SemanticInterpretation.Properties.Keys.Contains("action"))
     {
         var intentArgs = new SpeechIntentArgs(result.SemanticInterpretation.Properties["action"][0]);
         Debug.WriteLine($"--> Voice reco intent: {intentArgs.Intent}");
         // Execute the event
         SpeechCommandTriggered(this, intentArgs);
     }
 }
Example #2
0
 private void ProcessSpeechCommand(SR.SpeechRecognitionResult result)
 {
     if (result.SemanticInterpretation.Properties.Keys.Contains("action"))
     {
         var intentArgs = new SpeechIntentArgs(result.SemanticInterpretation.Properties["action"][0]);
         Debug.WriteLine($"--> Voice reco intent: {intentArgs.Intent}");
         // Execute the event
         SpeechCommandTriggered(this, intentArgs);
     }
 }