VoiceProfileEnrollmentCancellationDetails 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(VoiceProfileEnrollmentResult)

Creates an instance of VoiceProfileEnrollmentCancellationDetails object for the canceled VoiceProfileEnrollmentResult.

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(VoiceProfileEnrollmentResult)

Creates an instance of VoiceProfileEnrollmentCancellationDetails object for the canceled VoiceProfileEnrollmentResult.

static function fromResult(result: VoiceProfileEnrollmentResult)

Parameters

result
VoiceProfileEnrollmentResult

The result that was canceled.

Returns

The cancellation details object being created.