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