public abstract class MultiModalDialogCallback extends Object
author songsong.shao date 2025/4/27
| 构造器和说明 |
|---|
MultiModalDialogCallback() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
onClosed()
Called when the conversation closes.
|
abstract void |
onConnected()
Called when the conversation is connected.
|
abstract void |
onError(String dialogId,
String errorCode,
String errorMsg)
Called when an error occurs during a conversation.
|
abstract void |
onRequestAccepted(String dialogId)
Called when a request is accepted in a specific dialog.
|
abstract void |
onRespondingContent(String dialogId,
com.google.gson.JsonObject content)
Called when responding content is available in a specific dialog.
|
abstract void |
onRespondingEnded(String dialogId,
com.google.gson.JsonObject content)
Called when responding ends in a specific dialog.
|
abstract void |
onRespondingStarted(String dialogId)
Called when responding starts in a specific dialog.
|
abstract void |
onSpeechAudioData(ByteBuffer audioData)
Called when speech audio data is available.
|
abstract void |
onSpeechContent(String dialogId,
com.google.gson.JsonObject content)
Called when speech content is available in a specific dialog.
|
abstract void |
onSpeechEnded(String dialogId)
Called when speech ends in a specific dialog.
|
abstract void |
onSpeechStarted(String dialogId)
Called when speech starts in a specific dialog.
|
abstract void |
onStarted(String dialogId)
Called when a conversation starts with a specific dialog ID.
|
abstract void |
onStateChanged(State.DialogState state)
Called when the conversation state changes.
|
abstract void |
onStopped(String dialogId)
Called when a conversation stops with a specific dialog ID.
|
public abstract void onConnected()
public abstract void onStarted(String dialogId)
public abstract void onStopped(String dialogId)
public abstract void onSpeechStarted(String dialogId)
public abstract void onSpeechEnded(String dialogId)
public abstract void onError(String dialogId, String errorCode, String errorMsg)
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.
public abstract void onStateChanged(State.DialogState state)
param state The new state of the conversation.
public abstract void onSpeechAudioData(ByteBuffer audioData)
param audioData The audio data as a ByteBuffer.
public abstract void onRespondingStarted(String dialogId)
param dialogId The unique identifier for the dialog.
public abstract void onRespondingEnded(String dialogId, com.google.gson.JsonObject content)
param dialogId The unique identifier for the dialog. param content The content of the response as a JsonObject.
public abstract void onRespondingContent(String dialogId, com.google.gson.JsonObject content)
param dialogId The unique identifier for the dialog. param content The content of the response as a JsonObject.
public abstract void onSpeechContent(String dialogId, com.google.gson.JsonObject content)
param dialogId The unique identifier for the dialog. param content The content of the speech as a JsonObject.
public abstract void onRequestAccepted(String dialogId)
param dialogId The unique identifier for the dialog.
public abstract void onClosed()
Copyright © 2026. All rights reserved.