Class TingWuRealtimeCallback

java.lang.Object
com.alibaba.dashscope.legacy_2x.multimodal.tingwu.TingWuRealtimeCallback

@Deprecated public abstract class TingWuRealtimeCallback 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
    onAiResult(String taskId, com.google.gson.JsonObject content)
    Deprecated.
    Called when responding content is available in a specific dialog.
    abstract void
    Deprecated.
    Called when the conversation closes.
    abstract void
    onError(String errorCode, String errorMsg)
    Deprecated.
    Called when an error occurs during a conversation.
    abstract void
    onRecognizeResult(String taskId, com.google.gson.JsonObject content)
    Deprecated.
    Called when speech content is available in a specific dialog.
    abstract void
    onSpeechListen(String taskId, String dataId)
    Deprecated.
    Called when a request is accepted in a specific dialog.
    abstract void
    onStarted(String taskId)
    Deprecated.
    Called when a conversation starts with a specific dialog ID.
    abstract void
    onStopped(String taskId)
    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

    • TingWuRealtimeCallback

      public TingWuRealtimeCallback()
      Deprecated.
  • Method Details

    • onStarted

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

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

      public abstract void onError(String errorCode, String errorMsg)
      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

      public abstract void onAiResult(String taskId, com.google.gson.JsonObject content)
      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

      public abstract void onRecognizeResult(String taskId, com.google.gson.JsonObject content)
      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

      public abstract void onSpeechListen(String taskId, String dataId)
      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.