TranslationRecognitionResult Class

Defines the translation text result.

Constructor for internal use.

Inheritance
TranslationRecognitionResult

Constructor

TranslationRecognitionResult(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.

duration

Duration of recognized speech in ticks. A single tick represents one hundred nanoseconds or one ten-millionth of a second.

error_json

The bare JSON representation of the error from the Speech Service.

json

The bare JSON representation of the result from the Speech Service.

no_match_details

Detailed information for NoMatch recognition results.

Returns None if there was a match found.

offset

Offset of the recognized speech in ticks. A single tick represents one hundred nanoseconds or one ten-millionth of a second.

properties

Other properties of the result.

Returns

Type Description

dict indexed with PropertyId, and str values.

reason

Recognition reason.

result_id

Unique result id.

text

Normalized text generated by a speech recognition engine from recognized input.

translations

Presents the translation results. Each item in the map is a key value pair, where key is the language tag of the translated text, and value is the translation text in that language.