Class TingWuRealtimeCallback
java.lang.Object
com.alibaba.dashscope.legacy_2x.multimodal.tingwu.TingWuRealtimeCallback
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 voidonAiResult(String taskId, com.google.gson.JsonObject content) Deprecated.Called when responding content is available in a specific dialog.abstract voidonClosed()Deprecated.Called when the conversation closes.abstract voidDeprecated.Called when an error occurs during a conversation.abstract voidonRecognizeResult(String taskId, com.google.gson.JsonObject content) Deprecated.Called when speech content is available in a specific dialog.abstract voidonSpeechListen(String taskId, String dataId) Deprecated.Called when a request is accepted in a specific dialog.abstract voidDeprecated.Called when a conversation starts with a specific dialog ID.abstract voidDeprecated.Called when a conversation stops with a specific dialog ID.
-
Constructor Details
-
TingWuRealtimeCallback
public TingWuRealtimeCallback()Deprecated.
-
-
Method Details
-
onStarted
Deprecated.Called when a conversation starts with a specific dialog ID. -
onStopped
Deprecated.Called when a conversation stops with a specific dialog ID. -
onError
Deprecated.Called when an error occurs during a conversation.param errorCode The error code associated with the error. param errorMsg The error message associated with the error.
-
onAiResult
Deprecated.Called when responding content is available in a specific dialog.param taskId The unique identifier for the dialog. param content The content of the response as a JsonObject.
-
onRecognizeResult
Deprecated.Called when speech content is available in a specific dialog.param taskId The unique identifier for the dialog. param content The content of the speech as a JsonObject.
-
onSpeechListen
Deprecated.Called when a request is accepted in a specific dialog.param taskId The unique identifier for the dialog. param dataId for this task
-
onClosed
public abstract void onClosed()Deprecated.Called when the conversation closes.
-