/// <summary> /// Event handler invoked when detected speech is recognized. /// </summary> /// <param name="o"></param> /// <param name="args"></param> void ll_Recognized(object o, RecognizedEventArgs args) { // Store confidence, Recognized text, Grammar property RecognizerData rData = new RecognizerData(args.Confidence, args.Result.FirstChild.FirstChild.Name, args.Text); calleeData.addRecognizerResult(rData); }
void ll_Recognized(object sender, RecognizedEventArgs args) { // Console.WriteLine("Property Name = " + args.Result.FirstChild.FirstChild.Name); RecognizerData rData = new RecognizerData(args.Confidence, args.Result.FirstChild.FirstChild.Name, args.Text); callerData.addRecognizerResult(rData); // calleeData.speechRecognized(args.Confidence, args.Text, args.Result.FirstChild.FirstChild.Name); ; }