예제 #1
0
 private void btnToggleListening_Click(object sender, RoutedEventArgs e)
 {
     if (btnToggleListening_IsChecked == true)
     {
         speechRecognizer.RecognizedAsync(RecognizeMode.Multiple);
     }
     else
     {
         speechRecognizer.RecognizedAsyncStop();
     }
     txtSpeech.Text = "";
 }