SpeechContinuousRecognitionSession.Completed SpeechContinuousRecognitionSession.Completed SpeechContinuousRecognitionSession.Completed SpeechContinuousRecognitionSession.Completed SpeechContinuousRecognitionSession.Completed Event

Definition

Occurs when a continuous recognition session ends.

public : event TypedEventHandler<SpeechContinuousRecognitionSession, SpeechContinuousRecognitionCompletedEventArgs> Completed
// Register
event_token Completed(TypedEventHandler<SpeechContinuousRecognitionSession, SpeechContinuousRecognitionCompletedEventArgs> const& handler) const;

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

// Revoke with event_revoker
Completed_revoker Completed(auto_revoke_t, TypedEventHandler<SpeechContinuousRecognitionSession, SpeechContinuousRecognitionCompletedEventArgs> const& handler) const;
public event TypedEventHandler<SpeechContinuousRecognitionSession, SpeechContinuousRecognitionCompletedEventArgs> Completed
Public Event Completed As TypedEventHandler (Of SpeechContinuousRecognitionSession, SpeechContinuousRecognitionCompletedEventArgs)
function onCompleted(eventArgs){/* Your code */}


speechContinuousRecognitionSession.addEventListener("completed", onCompleted);
speechContinuousRecognitionSession.removeEventListener("completed", onCompleted);

Remarks

When an application suspends and resumes during a speech recognition session, it is important to check the SpeechContinuousRecognitionCompletedEventArgs Status property for Success. The API may give a UserCanceled result indicating that speech recognition needs to be restarted.

See also