Partager via


SpeechContinuousRecognitionSession.Completed Événement

Définition

Se produit lorsqu’une session de reconnaissance continue se termine.

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

Type d'événement

Remarques

Lorsqu’une application suspend et reprend pendant une session de reconnaissance vocale, il est important de case activée la propriété SpeechContinuousRecognitionCompletedEventArgs Status pour Success. L’API peut donner un résultat UserCanceled indiquant que la reconnaissance vocale doit être redémarrée.

S’applique à

Voir aussi