VoiceProfileCancellationDetails 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 VoiceProfileCancellationDetails object for the canceled VoiceProfileResult. |
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(VoiceProfileResult)
Creates an instance of VoiceProfileCancellationDetails object for the canceled VoiceProfileResult.
static function fromResult(result: VoiceProfileResult): VoiceProfileCancellationDetails
Parameters
- result
- VoiceProfileResult
The result that was canceled.
Returns
The cancellation details object being created.