Class ConversationTranscriptionCanceledEventArgs


  • public final class ConversationTranscriptionCanceledEventArgs
    extends ConversationTranscriptionEventArgs
    Class that defines conversation transcription canceled events. Added in version 1.5.0
    • Method Detail

      • getReason

        public CancellationReason getReason()
        The reason the recognition was canceled.
        Returns:
        Specifies the reason canceled.
      • getErrorCode

        public CancellationErrorCode getErrorCode()
        The error code in case of an unsuccessful recognition (when getReason() returns Error).
        Returns:
        An error code that represents the error reason.
      • getErrorDetails

        public String getErrorDetails()
        The error message in case of an unsuccessful recognition (when getReason() returns Error).
        Returns:
        A String that represents the error details.
      • toString

        public String toString()
        Returns a String that represents the conversation transcribing canceled event args.
        Overrides:
        toString in class ConversationTranscriptionEventArgs
        Returns:
        A String that represents the conversation transcribing canceled event args.