TranslationRecognitionCanceledEventArgs Class

Class for translation recognition canceled event arguments.

Constructor for internal use.

Inheritance
TranslationRecognitionCanceledEventArgs

Constructor

TranslationRecognitionCanceledEventArgs(handle: c_void_p)

Parameters

Name Description
handle
Required

Attributes

cancellation_details

The reason why recognition was cancelled.

Returns None if there was no cancellation.

error_code

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

error_details

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

offset

The offset of the recognition event in ticks. A single tick represents one hundred nanoseconds or one ten-millionth of a second.

reason

The reason the result was canceled.

result

Contains the translation recognition result.

session_id

Session identifier (a GUID in string format).