Class HttpSpeechSynthesisParam.HttpSpeechSynthesisParamBuilder<C extends HttpSpeechSynthesisParam,B extends HttpSpeechSynthesisParam.HttpSpeechSynthesisParamBuilder<C,B>>
java.lang.Object
com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C,B>
com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C,B>
com.alibaba.dashscope.legacy_2x.audio.http_tts.HttpSpeechSynthesisParam.HttpSpeechSynthesisParamBuilder<C,B>
- Enclosing class:
- HttpSpeechSynthesisParam
public abstract static class HttpSpeechSynthesisParam.HttpSpeechSynthesisParamBuilder<C extends HttpSpeechSynthesisParam,B extends HttpSpeechSynthesisParam.HttpSpeechSynthesisParamBuilder<C,B>>
extends HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Cbuild()The audio format (e.g., "wav", "mp3", "pcm").The pitch rate (0.5-2.0).The speech rate (0.5-2.0).sampleRate(Integer sampleRate) The sample rate in Hz (e.g., 8000, 16000, 24000, 48000).protected abstract Bself()The text to be synthesized into speech.toString()The voice name for synthesis (e.g., "longanyang", "longxiaochun").The audio volume (0-100).Methods inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam.HalfDuplexServiceParamBuilder
model, resourcesMethods inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase.HalfDuplexParamBaseBuilder
apiKey, clearHeaders, clearParameters, enableEncrypt, header, headers, parameter, parameters, securityCheck, workspace
-
Constructor Details
-
HttpSpeechSynthesisParamBuilder
public HttpSpeechSynthesisParamBuilder()
-
-
Method Details
-
text
The text to be synthesized into speech.- Returns:
this.
-
voice
The voice name for synthesis (e.g., "longanyang", "longxiaochun").- Returns:
this.
-
format
The audio format (e.g., "wav", "mp3", "pcm").- Returns:
this.
-
sampleRate
The sample rate in Hz (e.g., 8000, 16000, 24000, 48000).- Returns:
this.
-
volume
The audio volume (0-100).- Returns:
this.
-
rate
The speech rate (0.5-2.0).- Returns:
this.
-
pitch
The pitch rate (0.5-2.0).- Returns:
this.
-
self
- Specified by:
selfin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends HttpSpeechSynthesisParam,B extends HttpSpeechSynthesisParam.HttpSpeechSynthesisParamBuilder<C, B>>
-
build
- Specified by:
buildin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends HttpSpeechSynthesisParam,B extends HttpSpeechSynthesisParam.HttpSpeechSynthesisParamBuilder<C, B>>
-
toString
- Overrides:
toStringin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends HttpSpeechSynthesisParam,B extends HttpSpeechSynthesisParam.HttpSpeechSynthesisParamBuilder<C, B>>
-