public class HttpSpeechSynthesisParam extends HalfDuplexServiceParam
Example usage:
HttpSpeechSynthesisParam param = HttpSpeechSynthesisParam.builder()
.model("cosyvoice-v3-flash")
.text("你好,欢迎使用语音合成服务。")
.voice("longanyang")
.format("wav")
.sampleRate(24000)
.build();
headers, parameters| 构造器和说明 |
|---|
HttpSpeechSynthesisParam() |
| 限定符和类型 | 方法和说明 |
|---|---|
ByteBuffer |
getBinaryData()
Get the binary data, only websocket, if no binary data, return null.
|
com.google.gson.JsonObject |
getHttpBody()
Get the batch request data.
|
Object |
getInput()
Get the request input data.
|
void |
validate()
Validate the input and parameters.
|
getHeaders, getModel, getParameters, getResources, putHeaderpublic com.google.gson.JsonObject getHttpBody()
HalfDuplexParamBasegetHttpBody 在类中 HalfDuplexParamBasepublic Object getInput()
HalfDuplexParamBasegetInput 在类中 HalfDuplexParamBasepublic ByteBuffer getBinaryData()
HalfDuplexParamBasegetBinaryData 在类中 HalfDuplexParamBasepublic void validate()
throws InputRequiredException
HalfDuplexParamBasevalidate 在类中 HalfDuplexParamBaseInputRequiredException - Missing input fields.Copyright © 2026. All rights reserved.