Class DashScopeAudioSpeechOptions
java.lang.Object
com.alibaba.cloud.ai.dashscope.audio.DashScopeAudioSpeechOptions
- All Implemented Interfaces:
org.springframework.ai.audio.tts.TextToSpeechOptions,org.springframework.ai.model.ModelOptions
public class DashScopeAudioSpeechOptions
extends Object
implements org.springframework.ai.audio.tts.TextToSpeechOptions
- Author:
- kevinlin09, xuguan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuild an options instances. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()copy()getModel()getPitch()getSeed()getSpeed()getText()getVoice()voidsetBitRate(Integer bitRate) voidsetEnablePhonemeTimestamp(Boolean enablePhonemeTimestamp) voidsetEnableSsml(Boolean enableSsml) voidsetEnableWordTimestamp(Boolean enableWordTimestamp) voidsetInstruction(String instruction) voidsetLanguageHints(List<String> languageHints) voidvoidvoidsetRequestTextType(DashScopeAudioSpeechApi.RequestTextType requestTextType) voidsetResponseFormat(DashScopeAudioSpeechApi.ResponseFormat responseFormat) voidsetSampleRate(Integer sampleRate) voidvoidvoidvoidvoid
-
Constructor Details
-
DashScopeAudioSpeechOptions
public DashScopeAudioSpeechOptions()
-
-
Method Details
-
builder
-
getModel
- Specified by:
getModelin interfaceorg.springframework.ai.audio.tts.TextToSpeechOptions
-
setModel
-
getText
-
setText
-
getVoice
- Specified by:
getVoicein interfaceorg.springframework.ai.audio.tts.TextToSpeechOptions
-
setVoice
-
getRequestTextType
-
setRequestTextType
-
getSampleRate
-
setSampleRate
-
getVolume
-
setVolume
-
getSpeed
- Specified by:
getSpeedin interfaceorg.springframework.ai.audio.tts.TextToSpeechOptions
-
setSpeed
-
getPitch
-
setPitch
-
getEnableWordTimestamp
-
setEnableWordTimestamp
-
getEnablePhonemeTimestamp
-
setEnablePhonemeTimestamp
-
getEnableSsml
-
setEnableSsml
-
getBitRate
-
setBitRate
-
getSeed
-
setSeed
-
getLanguageHints
-
setLanguageHints
-
getInstruction
-
setInstruction
-
getResponseFormat
-
setResponseFormat
-
getFormat
- Specified by:
getFormatin interfaceorg.springframework.ai.audio.tts.TextToSpeechOptions
-
copy
- Specified by:
copyin interfaceorg.springframework.ai.audio.tts.TextToSpeechOptions
-