VoiceProfileEnrollmentCancellationDetails Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. speaker. VoiceProfileEnrollmentCancellationDetails
- com.
public class VoiceProfileEnrollmentCancellationDetails
Contains detailed information about why voice profile enrollment was canceled.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Voice |
fromResult(VoiceProfileEnrollmentResult result)
Creates an instance of Voice |
Cancellation |
getErrorCode()
The error code in case of an unsuccessful recognition (when get |
java.lang.String |
getErrorDetails()
The error message in case of an unsuccessful recognition (when get |
Cancellation |
getReason()
The reason the recognition 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 VoiceProfileEnrollmentCancellationDetails fromResult(VoiceProfileEnrollmentResult result)
Creates an instance of VoiceProfileEnrollmentCancellationDetails object for the canceled VoiceProfileEnrollmentResult.
Parameters:
Returns:
getErrorCode
public CancellationErrorCode getErrorCode()
The error code in case of an unsuccessful recognition (when getReason() returns Error). Added in version 1.1.0.
Returns:
getErrorDetails
public String getErrorDetails()
The error message in case of an unsuccessful recognition (when getReason() returns Error).
Returns:
getReason
public CancellationReason getReason()
The reason the recognition was canceled.
Returns:
toString
public String toString()
Returns a String that represents the cancellation details.
Overrides:
VoiceProfileEnrollmentCancellationDetails.toString()Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für