Class MultiModalDialogCallback
java.lang.Object
com.alibaba.dashscope.legacy_2x.multimodal.MultiModalDialogCallback
Deprecated.
Abstract class representing callbacks for multi-modal conversation events.
author songsong.shao date 2025/4/27
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidonClosed()Deprecated.Called when the conversation closes.abstract voidDeprecated.Called when the conversation is connected.abstract voidDeprecated.Called when an error occurs during a conversation.abstract voidonRequestAccepted(String dialogId) Deprecated.Called when a request is accepted in a specific dialog.abstract voidonRespondingContent(String dialogId, com.google.gson.JsonObject content) Deprecated.Called when responding content is available in a specific dialog.abstract voidonRespondingEnded(String dialogId, com.google.gson.JsonObject content) Deprecated.Called when responding ends in a specific dialog.abstract voidonRespondingStarted(String dialogId) Deprecated.Called when responding starts in a specific dialog.abstract voidonSpeechAudioData(ByteBuffer audioData) Deprecated.Called when speech audio data is available.abstract voidonSpeechContent(String dialogId, com.google.gson.JsonObject content) Deprecated.Called when speech content is available in a specific dialog.abstract voidonSpeechEnded(String dialogId) Deprecated.Called when speech ends in a specific dialog.abstract voidonSpeechStarted(String dialogId) Deprecated.Called when speech starts in a specific dialog.abstract voidDeprecated.Called when a conversation starts with a specific dialog ID.abstract voidonStateChanged(State.DialogState state) Deprecated.Called when the conversation state changes.abstract voidDeprecated.Called when a conversation stops with a specific dialog ID.
-
Constructor Details
-
MultiModalDialogCallback
public MultiModalDialogCallback()Deprecated.
-
-
Method Details
-
onConnected
public abstract void onConnected()Deprecated.Called when the conversation is connected. -
onStarted
Deprecated.Called when a conversation starts with a specific dialog ID. -
onStopped
Deprecated.Called when a conversation stops with a specific dialog ID. -
onSpeechStarted
Deprecated.Called when speech starts in a specific dialog. -
onSpeechEnded
Deprecated.Called when speech ends in a specific dialog. -
onError
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
Deprecated.Called when the conversation state changes.param state The new state of the conversation.
-
onSpeechAudioData
Deprecated.Called when speech audio data is available.param audioData The audio data as a ByteBuffer.
-
onRespondingStarted
Deprecated.Called when responding starts in a specific dialog.param dialogId The unique identifier for the dialog.
-
onRespondingEnded
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
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
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
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.
-