VoiceProfileEnrollmentCancellationDetails class
- Extends
Properties
Error |
The error code in case of an unsuccessful recognition. Added in version 1.1.0. |
error |
In case of an unsuccessful recognition, provides details of the occurred error. |
reason | The reason the recognition was canceled. |
Methods
from |
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): VoiceProfileEnrollmentCancellationDetails
Parameters
- result
- VoiceProfileEnrollmentResult
The result that was canceled.
Returns
The cancellation details object being created.