Class MultiModalDialogCallback

java.lang.Object
com.alibaba.dashscope.legacy_2x.multimodal.MultiModalDialogCallback

@Deprecated public abstract class MultiModalDialogCallback extends Object
Deprecated.
Abstract class representing callbacks for multi-modal conversation events.

author songsong.shao date 2025/4/27

  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    Deprecated.
    Called when the conversation closes.
    abstract void
    Deprecated.
    Called when the conversation is connected.
    abstract void
    onError(String dialogId, String errorCode, String errorMsg)
    Deprecated.
    Called when an error occurs during a conversation.
    abstract void
    Deprecated.
    Called when a request is accepted in a specific dialog.
    abstract void
    onRespondingContent(String dialogId, com.google.gson.JsonObject content)
    Deprecated.
    Called when responding content is available in a specific dialog.
    abstract void
    onRespondingEnded(String dialogId, com.google.gson.JsonObject content)
    Deprecated.
    Called when responding ends in a specific dialog.
    abstract void
    Deprecated.
    Called when responding starts in a specific dialog.
    abstract void
    Deprecated.
    Called when speech audio data is available.
    abstract void
    onSpeechContent(String dialogId, com.google.gson.JsonObject content)
    Deprecated.
    Called when speech content is available in a specific dialog.
    abstract void
    Deprecated.
    Called when speech ends in a specific dialog.
    abstract void
    Deprecated.
    Called when speech starts in a specific dialog.
    abstract void
    onStarted(String dialogId)
    Deprecated.
    Called when a conversation starts with a specific dialog ID.
    abstract void
    Deprecated.
    Called when the conversation state changes.
    abstract void
    onStopped(String dialogId)
    Deprecated.
    Called when a conversation stops with a specific dialog ID.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MultiModalDialogCallback

      public MultiModalDialogCallback()
      Deprecated.
  • Method Details

    • onConnected

      public abstract void onConnected()
      Deprecated.
      Called when the conversation is connected.
    • onStarted

      public abstract void onStarted(String dialogId)
      Deprecated.
      Called when a conversation starts with a specific dialog ID.
    • onStopped

      public abstract void onStopped(String dialogId)
      Deprecated.
      Called when a conversation stops with a specific dialog ID.
    • onSpeechStarted

      public abstract void onSpeechStarted(String dialogId)
      Deprecated.
      Called when speech starts in a specific dialog.
    • onSpeechEnded

      public abstract void onSpeechEnded(String dialogId)
      Deprecated.
      Called when speech ends in a specific dialog.
    • onError

      public abstract void onError(String dialogId, String errorCode, String errorMsg)
      Deprecated.
      Called when an error occurs during a conversation.

      param dialogId The unique identifier for the dialog. param errorCode The error code associated with the error. param errorMsg The error message associated with the error.

    • onStateChanged

      public abstract void onStateChanged(State.DialogState state)
      Deprecated.
      Called when the conversation state changes.

      param state The new state of the conversation.

    • onSpeechAudioData

      public abstract void onSpeechAudioData(ByteBuffer audioData)
      Deprecated.
      Called when speech audio data is available.

      param audioData The audio data as a ByteBuffer.

    • onRespondingStarted

      public abstract void onRespondingStarted(String dialogId)
      Deprecated.
      Called when responding starts in a specific dialog.

      param dialogId The unique identifier for the dialog.

    • onRespondingEnded

      public abstract void onRespondingEnded(String dialogId, com.google.gson.JsonObject content)
      Deprecated.
      Called when responding ends in a specific dialog.

      param dialogId The unique identifier for the dialog. param content The content of the response as a JsonObject.

    • onRespondingContent

      public abstract void onRespondingContent(String dialogId, com.google.gson.JsonObject content)
      Deprecated.
      Called when responding content is available in a specific dialog.

      param dialogId The unique identifier for the dialog. param content The content of the response as a JsonObject.

    • onSpeechContent

      public abstract void onSpeechContent(String dialogId, com.google.gson.JsonObject content)
      Deprecated.
      Called when speech content is available in a specific dialog.

      param dialogId The unique identifier for the dialog. param content The content of the speech as a JsonObject.

    • onRequestAccepted

      public abstract void onRequestAccepted(String dialogId)
      Deprecated.
      Called when a request is accepted in a specific dialog.

      param dialogId The unique identifier for the dialog.

    • onClosed

      public abstract void onClosed()
      Deprecated.
      Called when the conversation closes.