Class QwenTtsRealtimeCallback

java.lang.Object
com.alibaba.dashscope.legacy_2x.audio.qwen_tts_realtime.QwenTtsRealtimeCallback

@Deprecated public abstract class QwenTtsRealtimeCallback extends Object
Deprecated.
Author:
lengjiayi
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    onClose(int code, String reason)
    Deprecated.
    Will be called when the connection is closed.
    abstract void
    onEvent(com.google.gson.JsonObject message)
    Deprecated.
    Will be called as soon as the server replies.
    void
    Deprecated.
    Will be called as soon as the connection is established, only for http stream request.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • QwenTtsRealtimeCallback

      public QwenTtsRealtimeCallback()
      Deprecated.
  • Method Details

    • onOpen

      public void onOpen()
      Deprecated.
      Will be called as soon as the connection is established, only for http stream request.
    • onEvent

      public abstract void onEvent(com.google.gson.JsonObject message)
      Deprecated.
      Will be called as soon as the server replies.
      Parameters:
      message - The message body in json.
    • onClose

      public abstract void onClose(int code, String reason)
      Deprecated.
      Will be called when the connection is closed.