共用方式為


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 屬性是否成功。 API 可能會提供 UserCanceled 結果,指出必須重新開機語音辨識。

適用於

另請參閱