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