SpeakerRecognitionCancellationDetails class

Extends

Properties

ErrorCode

The error code in case of an unsuccessful recognition. Added in version 1.1.0.

errorDetails

In case of an unsuccessful recognition, provides details of the occurred error.

reason

The reason the recognition was canceled.

Methods

fromResult(SpeakerRecognitionResult)

Creates an instance of SpeakerRecognitionCancellationDetails object for the canceled SpeakerRecognitionResult

Property Details

ErrorCode

The error code in case of an unsuccessful recognition. Added in version 1.1.0.

CancellationErrorCode ErrorCode

Property Value

An error code that represents the error reason.

errorDetails

In case of an unsuccessful recognition, provides details of the occurred error.

string errorDetails

Property Value

string

A String that represents the error details.

reason

The reason the recognition was canceled.

CancellationReason reason

Property Value

Specifies the reason canceled.

Method Details

fromResult(SpeakerRecognitionResult)

Creates an instance of SpeakerRecognitionCancellationDetails object for the canceled SpeakerRecognitionResult

static function fromResult(result: SpeakerRecognitionResult): SpeakerRecognitionCancellationDetails

Parameters

result
SpeakerRecognitionResult

The result that was canceled.

Returns

The cancellation details object being created.