VoiceProfileCancellationDetails Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. speaker. VoiceProfileCancellationDetails
- com.
public class VoiceProfileCancellationDetails
Contains detailed information about why a voice profile creation was canceled.
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
close()
Explicitly frees any external resource attached to the object |
static
Voice |
fromResult(VoiceProfileResult result)
Creates an instance of Voice |
Cancellation |
getErrorCode()
The error code in case of an unsuccessful voice profile creation (when get |
java.lang.String |
getErrorDetails()
The error message in case of an unsuccessful voice profile creation (when get |
Cancellation |
getReason()
The reason the voice profile creation was canceled. |
java.lang.String |
toString()
Returns a String that represents the cancellation details. |
Methods inherited from java.lang.Object
Method Details
close
public void close()
Explicitly frees any external resource attached to the object
fromResult
public static VoiceProfileCancellationDetails fromResult(VoiceProfileResult result)
Creates an instance of VoiceProfileCancellationDetails object for the canceled VoiceProfileResult.
Parameters:
Returns:
getErrorCode
public CancellationErrorCode getErrorCode()
The error code in case of an unsuccessful voice profile creation (when getReason() returns Error).
Returns:
getErrorDetails
public String getErrorDetails()
The error message in case of an unsuccessful voice profile creation (when getReason() returns Error).
Returns:
getReason
public CancellationReason getReason()
The reason the voice profile creation was canceled.
Returns:
toString
public String toString()
Returns a String that represents the cancellation details.
Overrides:
VoiceProfileCancellationDetails.toString()Returns:
Applies to
Azure SDK for Java