Class QwenTtsRealtimeConfig.QwenTtsRealtimeConfigBuilder<C extends QwenTtsRealtimeConfig,B extends QwenTtsRealtimeConfig.QwenTtsRealtimeConfigBuilder<C,B>>
java.lang.Object
com.alibaba.dashscope.legacy_2x.audio.qwen_tts_realtime.QwenTtsRealtimeConfig.QwenTtsRealtimeConfigBuilder<C,B>
- Enclosing class:
- QwenTtsRealtimeConfig
public abstract static class QwenTtsRealtimeConfig.QwenTtsRealtimeConfigBuilder<C extends QwenTtsRealtimeConfig,B extends QwenTtsRealtimeConfig.QwenTtsRealtimeConfigBuilder<C,B>>
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbitRate for tts , support 6~510,default is 128kbps. only work on format: opus/mp3abstract Cbuild()text normalization, default is trueformat for tts, support mp3,wav,pcm,opus,default is pcminstructions(String instructions) instructions for tts, default is nulllanguageType(String languageType) languageType for ttsmodeoptimizeInstructions(Boolean optimizeInstructions) instructions will optimize on server side, default is falseparameters(Map<String, Object> parameters) The extra parameters.pitchRate for tts , range [0.5~2.0],default is 1.0responseFormat(QwenTtsRealtimeAudioFormat responseFormat) response formatsampleRate(Integer sampleRate) sampleRate for tts , range [8000,16000,22050,24000,44100,48000]. default is 24000protected abstract Bself()speechRate(Float speechRate) speechRate for tts , range [0.5~2.0],default is 1.0toString()voice to be used in sessionvolume for tts , range [0~100],default is 50
-
Constructor Details
-
QwenTtsRealtimeConfigBuilder
public QwenTtsRealtimeConfigBuilder()
-
-
Method Details
-
voice
voice to be used in session- Returns:
this.
-
responseFormat
response format- Returns:
this.
-
mode
mode- Returns:
this.
-
languageType
languageType for tts- Returns:
this.
-
sampleRate
sampleRate for tts , range [8000,16000,22050,24000,44100,48000]. default is 24000- Returns:
this.
-
speechRate
speechRate for tts , range [0.5~2.0],default is 1.0- Returns:
this.
-
volume
volume for tts , range [0~100],default is 50- Returns:
this.
-
format
format for tts, support mp3,wav,pcm,opus,default is pcm- Returns:
this.
-
pitchRate
pitchRate for tts , range [0.5~2.0],default is 1.0- Returns:
this.
-
bitRate
bitRate for tts , support 6~510,default is 128kbps. only work on format: opus/mp3- Returns:
this.
-
enableTn
text normalization, default is true- Returns:
this.
-
instructions
instructions for tts, default is null- Returns:
this.
-
optimizeInstructions
instructions will optimize on server side, default is false- Returns:
this.
-
parameters
The extra parameters.- Returns:
this.
-
self
-
build
-
toString
-