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.
Modifier and Type | Method and Description |
---|---|
static
Voice |
from Creates an instance of Voice |
Cancellation |
get The error code in case of an unsuccessful activation phrase request (when get |
java.lang.String |
get The error message in case of an unsuccessful activation phrase request (when get |
Cancellation |
get The reason the activation phrase request was canceled. |
java.lang.String |
to Returns a String that represents the cancellation 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:
Azure SDK for Java feedback
Azure SDK for Java is an open source project. Select a link to provide feedback: