Class SpeechSynthesisParam.SpeechSynthesisParamBuilder<C extends SpeechSynthesisParam,B extends SpeechSynthesisParam.SpeechSynthesisParamBuilder<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.tts.SpeechSynthesisParam.SpeechSynthesisParamBuilder<C,B>
- Enclosing class:
- SpeechSynthesisParam
public abstract static class SpeechSynthesisParam.SpeechSynthesisParamBuilder<C extends SpeechSynthesisParam,B extends SpeechSynthesisParam.SpeechSynthesisParamBuilder<C,B>>
extends HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Cbuild()enablePhonemeTimestamp(boolean enablePhonemeTimestamp) enable phoneme level timestamp.enableWordTimestamp(boolean enableWordTimestamp) enable word level timestamp.format(SpeechSynthesisAudioFormat format) synthesis audio format.pitch(float pitch) synthesis audio pitch.rate(float rate) synthesis audio speed.sampleRate(int sampleRate) synthesis audio sample rate.protected abstract Bself()The input text.textType(SpeechSynthesisTextType textType) Input text type.toString()volume(int volume) synthesis audio volume.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
-
SpeechSynthesisParamBuilder
public SpeechSynthesisParamBuilder()
-
-
Method Details
-
text
The input text.- Returns:
this.
-
textType
Input text type.- Returns:
this.
-
format
synthesis audio format.- Returns:
this.
-
sampleRate
synthesis audio sample rate.- Returns:
this.
-
volume
synthesis audio volume.- Returns:
this.
-
rate
synthesis audio speed.- Returns:
this.
-
pitch
synthesis audio pitch.- Returns:
this.
-
enableWordTimestamp
enable word level timestamp.- Returns:
this.
-
enablePhonemeTimestamp
enable phoneme level timestamp.- Returns:
this.
-
self
- Specified by:
selfin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends SpeechSynthesisParam,B extends SpeechSynthesisParam.SpeechSynthesisParamBuilder<C, B>>
-
build
- Specified by:
buildin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends SpeechSynthesisParam,B extends SpeechSynthesisParam.SpeechSynthesisParamBuilder<C, B>>
-
toString
- Overrides:
toStringin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends SpeechSynthesisParam,B extends SpeechSynthesisParam.SpeechSynthesisParamBuilder<C, B>>
-