SpeechRecognizer.HypothesisGenerated SpeechRecognizer.HypothesisGenerated SpeechRecognizer.HypothesisGenerated SpeechRecognizer.HypothesisGenerated SpeechRecognizer.HypothesisGenerated Event

Definition

Occurs during an ongoing dictation session when a recognition result fragment is returned by the speech recognizer.

public : event TypedEventHandler<SpeechRecognizer, SpeechRecognitionHypothesisGeneratedEventArgs> HypothesisGenerated
// Register
event_token HypothesisGenerated(TypedEventHandler<SpeechRecognizer, SpeechRecognitionHypothesisGeneratedEventArgs> const& handler) const;

// Revoke with event_token
void HypothesisGenerated(event_token const& cookie) const;

// Revoke with event_revoker
HypothesisGenerated_revoker HypothesisGenerated(auto_revoke_t, TypedEventHandler<SpeechRecognizer, SpeechRecognitionHypothesisGeneratedEventArgs> const& handler) const;
public event TypedEventHandler<SpeechRecognizer, SpeechRecognitionHypothesisGeneratedEventArgs> HypothesisGenerated
Public Event HypothesisGenerated As TypedEventHandler (Of SpeechRecognizer, SpeechRecognitionHypothesisGeneratedEventArgs)
function onHypothesisGenerated(eventArgs){/* Your code */}


speechRecognizer.addEventListener("hypothesisgenerated", onHypothesisGenerated);
speechRecognizer.removeEventListener("hypothesisgenerated", onHypothesisGenerated);

Remarks

The result fragment is useful for demonstrating that speech recognition is processing input during a lengthy dictation session.

See also