Class AudioInfo
java.lang.Object
com.alibaba.dashscope.legacy_2x.audio.http_tts.AudioInfo
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDeprecated.booleanDeprecated.getData()Deprecated.The audio data in base64 format (if available).Deprecated.The expiration timestamp (Unix timestamp in seconds) for the URL.getId()Deprecated.The unique identifier for this audio file.longDeprecated.Gets the remaining time before URL expiration in seconds.getUrl()Deprecated.The audio URL for downloading the synthesized audio file.inthashCode()Deprecated.booleanhasUrl()Deprecated.Checks if this audio info has a valid URL.booleanDeprecated.Checks if the URL has expired.voidDeprecated.The audio data in base64 format (if available).voidsetExpiresAt(Long expiresAt) Deprecated.The expiration timestamp (Unix timestamp in seconds) for the URL.voidDeprecated.The unique identifier for this audio file.voidDeprecated.The audio URL for downloading the synthesized audio file.toString()Deprecated.
-
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
Deprecated.The audio URL for downloading the synthesized audio file. -
getId
Deprecated.The unique identifier for this audio file. -
getExpiresAt
Deprecated.The expiration timestamp (Unix timestamp in seconds) for the URL. -
getData
Deprecated.The audio data in base64 format (if available). -
setUrl
Deprecated.The audio URL for downloading the synthesized audio file. -
setId
Deprecated.The unique identifier for this audio file. -
setExpiresAt
Deprecated.The expiration timestamp (Unix timestamp in seconds) for the URL. -
setData
Deprecated.The audio data in base64 format (if available). -
toString
Deprecated. -
equals
Deprecated. -
canEqual
Deprecated. -
hashCode
public int hashCode()Deprecated.
-