public abstract class TingWuRealtimeCallback extends Object
author songsong.shao date 2025/4/27
| 构造器和说明 |
|---|
TingWuRealtimeCallback() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
onAiResult(String taskId,
com.google.gson.JsonObject content)
Called when responding content is available in a specific dialog.
|
abstract void |
onClosed()
Called when the conversation closes.
|
abstract void |
onError(String errorCode,
String errorMsg)
Called when an error occurs during a conversation.
|
abstract void |
onRecognizeResult(String taskId,
com.google.gson.JsonObject content)
Called when speech content is available in a specific dialog.
|
abstract void |
onSpeechListen(String taskId,
String dataId)
Called when a request is accepted in a specific dialog.
|
abstract void |
onStarted(String taskId)
Called when a conversation starts with a specific dialog ID.
|
abstract void |
onStopped(String taskId)
Called when a conversation stops with a specific dialog ID.
|
public abstract void onStarted(String taskId)
public abstract void onStopped(String taskId)
public abstract void onError(String errorCode, String errorMsg)
param errorCode The error code associated with the error. param errorMsg The error message associated with the error.
public abstract void onAiResult(String taskId, com.google.gson.JsonObject content)
param taskId The unique identifier for the dialog. param content The content of the response as a JsonObject.
public abstract void onRecognizeResult(String taskId, com.google.gson.JsonObject content)
param taskId The unique identifier for the dialog. param content The content of the speech as a JsonObject.
public abstract void onSpeechListen(String taskId, String dataId)
param taskId The unique identifier for the dialog. param dataId for this task
public abstract void onClosed()
Copyright © 2026. All rights reserved.