SpeechContinuousRecognitionSession.Completed 事件

定义

在连续识别会话结束时发生。

// 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) 

事件类型

注解

当应用程序在语音识别会话期间暂停和恢复时,请务必检查 SpeechContinuousRecognitionCompletedEventArgs Status 属性以获取 Success。 API 可能会提供 UserCanceled 结果,指示需要重启语音识别。

适用于

另请参阅