TranslationRecognitionCanceledEventArgs Class

Definition

Contains payload of translation text result recognition canceled result events.

public sealed class TranslationRecognitionCanceledEventArgs : Microsoft.CognitiveServices.Speech.Translation.TranslationRecognitionEventArgs
type TranslationRecognitionCanceledEventArgs = class
    inherit TranslationRecognitionEventArgs
Public NotInheritable Class TranslationRecognitionCanceledEventArgs
Inherits TranslationRecognitionEventArgs
Inheritance

Properties

ErrorCode

The error code in case of an unsuccessful recognition (Reason is set to Error). If Reason is not Error, ErrorCode returns NoError. Added in 1.1.0

ErrorDetails

The error message in case of an unsuccessful recognition (Reason is set to Error).

Offset

Represents the message offset in ticks (100 nanoseconds).

(Inherited from RecognitionEventArgs)
Reason

The reason the recognition was canceled.

Result

Specifies the recognition result.

(Inherited from TranslationRecognitionEventArgs)
SessionId

Represents the session identifier.

(Inherited from SessionEventArgs)

Methods

ToString()

Returns a string that represents the speech recognition result event.

Applies to