java.lang.Object
com.alibaba.dashscope.legacy_2x.audio.http_tts.AudioInfo

@Deprecated public class AudioInfo extends Object
Deprecated.
Audio information containing URL and metadata for non-SSE synthesis results. When using non-SSE synchronous call, the audio is returned as a URL instead of binary data.
Author:
DashScope SDK Team
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    Deprecated.
    The audio data in base64 format (if available).
    Deprecated.
    The expiration timestamp (Unix timestamp in seconds) for the URL.
    Deprecated.
    The unique identifier for this audio file.
    long
    Deprecated.
    Gets the remaining time before URL expiration in seconds.
    Deprecated.
    The audio URL for downloading the synthesized audio file.
    int
    Deprecated.
     
    boolean
    Deprecated.
    Checks if this audio info has a valid URL.
    boolean
    Deprecated.
    Checks if the URL has expired.
    void
    Deprecated.
    The audio data in base64 format (if available).
    void
    setExpiresAt(Long expiresAt)
    Deprecated.
    The expiration timestamp (Unix timestamp in seconds) for the URL.
    void
    Deprecated.
    The unique identifier for this audio file.
    void
    Deprecated.
    The audio URL for downloading the synthesized audio file.
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AudioInfo

      public AudioInfo()
      Deprecated.
  • Method Details

    • hasUrl

      public boolean hasUrl()
      Deprecated.
      Checks if this audio info has a valid URL.
      Returns:
      true if URL is available, false otherwise
    • isExpired

      public boolean isExpired()
      Deprecated.
      Checks if the URL has expired.
      Returns:
      true if expired, false if still valid or expiration unknown
    • getRemainingSeconds

      public long getRemainingSeconds()
      Deprecated.
      Gets the remaining time before URL expiration in seconds.
      Returns:
      remaining seconds, or -1 if expiration unknown or already expired
    • getUrl

      public String getUrl()
      Deprecated.
      The audio URL for downloading the synthesized audio file.
    • getId

      public String getId()
      Deprecated.
      The unique identifier for this audio file.
    • getExpiresAt

      public Long getExpiresAt()
      Deprecated.
      The expiration timestamp (Unix timestamp in seconds) for the URL.
    • getData

      public String getData()
      Deprecated.
      The audio data in base64 format (if available).
    • setUrl

      public void setUrl(String url)
      Deprecated.
      The audio URL for downloading the synthesized audio file.
    • setId

      public void setId(String id)
      Deprecated.
      The unique identifier for this audio file.
    • setExpiresAt

      public void setExpiresAt(Long expiresAt)
      Deprecated.
      The expiration timestamp (Unix timestamp in seconds) for the URL.
    • setData

      public void setData(String data)
      Deprecated.
      The audio data in base64 format (if available).
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
      Deprecated.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object