Exemple #1
0
 void SR_RecognizerResultReceived(SpeechRecognizer sender,
                                  SpeechRecognitionResultReceivedEventArgs args)
 {
     if (args.Text == null)
     {
         return;
     }
     IntermediateResults.Text = args.Text;
 }
Exemple #2
0
 /// <summary>
 /// A result was received. Whether or not it is intermediary depends on the capture state.
 /// </summary>
 private void SR_RecognizerResultReceived(SpeechRecognizer sender, SpeechRecognitionResultReceivedEventArgs args)
 {
     Debug.WriteLine(args.Text);
     if (args.Text != null)
     {
         if (lastState != SpeechRecognizerAudioCaptureState.Thinking)
         {
             ResultText.Text = String.Join("\n", speechCache.Concat(Enumerable.Repeat(args.Text, 1)));
         }
     }
 }
Exemple #3
0
        void speechRec_RecognizerResultReceived(SpeechRecognizer sender, SpeechRecognitionResultReceivedEventArgs args)
        {
            if (args.Text == null) return;

            IntermediateResultsTextBlock.Text = "IntermediateResults: " + args.Text;

            if (args.Text.ToLower().Contains("cancel"))
                speechRec.RequestCancelOperation();
            else if (args.Text.ToLower().Contains("stop"))
                speechRec.StopListeningAndProcessAudio();
        }
        void speechRec_RecognizerResultReceived(SpeechRecognizer sender, SpeechRecognitionResultReceivedEventArgs args)
        {
            if (args.Text == null)
            {
                return;
            }

            IntermediateResultsTextBlock.Text = "IntermediateResults: " + args.Text;

            if (args.Text.ToLower().Contains("cancel"))
            {
                speechRec.RequestCancelOperation();
            }
            else if (args.Text.ToLower().Contains("stop"))
            {
                speechRec.StopListeningAndProcessAudio();
            }
        }
Exemple #5
0
 void speechEngine_RecognizerResultReceived(SpeechRecognizer sender, SpeechRecognitionResultReceivedEventArgs args)
 {
     throw new NotImplementedException();
 }
 void SR_RecognizerResultReceived(SpeechRecognizer sender,
                                  SpeechRecognitionResultReceivedEventArgs args)
 {
     IntermediateResults.Text = args.Text;
 }
Exemple #7
0
 void SR_RecognizerResultReceived(SpeechRecognizer sender,
     SpeechRecognitionResultReceivedEventArgs args)
 {
     if (args.Text == null) return;
     IntermediateResults.Text = args.Text;
 }