SpeechContinuousRecognitionSession.ResultGenerated 事件

定义

当语音识别器从连续识别会话返回结果时发生。

// Register
event_token ResultGenerated(TypedEventHandler<SpeechContinuousRecognitionSession, SpeechContinuousRecognitionResultGeneratedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SpeechContinuousRecognitionSession::ResultGenerated_revoker ResultGenerated(auto_revoke_t, TypedEventHandler<SpeechContinuousRecognitionSession, SpeechContinuousRecognitionResultGeneratedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpeechContinuousRecognitionSession,SpeechContinuousRecognitionResultGeneratedEventArgs> ResultGenerated;
function onResultGenerated(eventArgs) { /* Your code */ }
speechContinuousRecognitionSession.addEventListener("resultgenerated", onResultGenerated);
speechContinuousRecognitionSession.removeEventListener("resultgenerated", onResultGenerated);
- or -
speechContinuousRecognitionSession.onresultgenerated = onResultGenerated;
Public Custom Event ResultGenerated As TypedEventHandler(Of SpeechContinuousRecognitionSession, SpeechContinuousRecognitionResultGeneratedEventArgs) 

事件类型

适用于

另请参阅