RecognitionResult Class

Detailed information about the result of a recognition operation.

Constructor for internal use.

Inheritance
builtins.object
RecognitionResult

Constructor

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