public class FishAudioClient extends Object
| Constructor and Description |
|---|
FishAudioClient() |
| Modifier and Type | Method and Description |
|---|---|
static com.litongjava.model.http.response.ResponseVo |
speech(FishAudioTTSRequest vo)
传入 FishAudioTTSRequestVo 对象。
|
static com.litongjava.model.http.response.ResponseVo |
speech(String text)
直接传入文本内容构造请求(使用默认参数)。
|
static com.litongjava.model.http.response.ResponseVo |
speech(String apiKey,
FishAudioTTSRequest vo)
指定 API Key 调用接口。
|
static com.litongjava.model.http.response.ResponseVo |
speech(String apiPrefixUrl,
String apiKey,
FishAudioTTSRequest vo)
完整的接口调用:指定 URL、API Key 和请求对象。
|
static com.litongjava.model.http.response.ResponseVo |
speechRequest(String apiPrefixUrl,
String apiKey,
byte[] payload)
发起 HTTP 请求,返回鱼声平台 TTS 接口响应结果。
|
public static final String TTS_URL
public static com.litongjava.model.http.response.ResponseVo speech(String text)
text - 需要合成的文本public static com.litongjava.model.http.response.ResponseVo speech(FishAudioTTSRequest vo)
vo - 请求对象public static com.litongjava.model.http.response.ResponseVo speech(String apiKey, FishAudioTTSRequest vo)
apiKey - API密钥vo - 请求对象public static com.litongjava.model.http.response.ResponseVo speech(String apiPrefixUrl, String apiKey, FishAudioTTSRequest vo)
apiPrefixUrl - 接口前缀地址,如 https://api.fish.audio/v1apiKey - API 密钥vo - 请求对象Copyright © 2026. All rights reserved.