private void OnHypothesisGenerated(string hypothesis) { HypothesisGenerated?.Invoke( this, new SpeechRecognitionHypothesisGeneratedEventArgs() { Hypothesis = new SpeechRecognitionHypothesis() { Text = hypothesis } }); }
private void SpeechRecognizer_HypothesisGenerated(SpeechRecognizer sender, SpeechRecognitionHypothesisGeneratedEventArgs args) { HypothesisGenerated?.Invoke(this, args); }