示例#1
0
 private void OnMicShortPhraseReceiveHandler(object sender, SpeechResponseEventArgs e)
 {
     MicClient.EndMicAndRecognition();
     IsMicroUse = false;
     for (int i = 0; i < e.PhraseResponse.Results.Length; i++)
     {
         RecognizeText.Add(e.PhraseResponse.Results[i].DisplayText);
     }
 }
示例#2
0
 private void onIntentHandler(object sender, SpeechIntentEventArgs e)
 {
     RecognizeText.Add(e.Payload);
     MicClient.EndMicAndRecognition();
 }