SpeechContinuousRecognitionSession.Completed Event

Definition

Occurs when a continuous recognition session ends.

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

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

// Revoke with event_revoker
SpeechContinuousRecognitionSession::Completed_revoker Completed(auto_revoke_t, TypedEventHandler<SpeechContinuousRecognitionSession, SpeechContinuousRecognitionCompletedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpeechContinuousRecognitionSession,SpeechContinuousRecognitionCompletedEventArgs> Completed;
function onCompleted(eventArgs) { /* Your code */ }
speechContinuousRecognitionSession.addEventListener("completed", onCompleted);
speechContinuousRecognitionSession.removeEventListener("completed", onCompleted);
- or -
speechContinuousRecognitionSession.oncompleted = onCompleted;
Public Custom Event Completed As TypedEventHandler(Of SpeechContinuousRecognitionSession, SpeechContinuousRecognitionCompletedEventArgs) 

Event Type

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.

Applies to

See also