Class SpeechSynthesisParam
java.lang.Object
com.alibaba.dashscope.legacy_2x.base.FullDuplexParamBase
com.alibaba.dashscope.legacy_2x.base.FullDuplexServiceParam
com.alibaba.dashscope.legacy_2x.audio.ttsv2.SpeechSynthesisParam
Deprecated.
- Author:
- lengjiayi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSpeechSynthesisParam.SpeechSynthesisParamBuilder<C extends SpeechSynthesisParam,B extends SpeechSynthesisParam.SpeechSynthesisParamBuilder<C, B>> Deprecated.Nested classes/interfaces inherited from class com.alibaba.dashscope.legacy_2x.base.FullDuplexServiceParam
FullDuplexServiceParam.FullDuplexServiceParamBuilder<C extends FullDuplexServiceParam,B extends FullDuplexServiceParam.FullDuplexServiceParamBuilder<C, B>> Nested classes/interfaces inherited from class com.alibaba.dashscope.legacy_2x.base.FullDuplexParamBase
FullDuplexParamBase.FullDuplexParamBaseBuilder<C extends FullDuplexParamBase,B extends FullDuplexParamBase.FullDuplexParamBaseBuilder<C, B>> -
Field Summary
Fields inherited from class com.alibaba.dashscope.legacy_2x.base.FullDuplexParamBase
headers, parameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic SpeechSynthesisParam.SpeechSynthesisParamBuilder<?,?> builder()Deprecated.protected booleanDeprecated.booleanDeprecated.longDeprecated.longDeprecated.Deprecated.synthesis audio format.Deprecated.Hot fix configuration for pronunciation and replace rules.Deprecated.the following parameters take effect only in CosyVoice V3 and later versions. instruction for synthesis.Deprecated.language hints.Deprecated.The service parameters.floatDeprecated.synthesis audio pitch.Deprecated.Get the resourcesintgetSeed()Deprecated.random seed.floatDeprecated.synthesis audio speed.io.reactivex.Flowable<Object>Deprecated.Get the stream input data, only for websocket stream in and duplex mode.intgetStyle()Deprecated.synthesis styleDeprecated.Input text type.getVoice()Deprecated.voice nameintDeprecated.synthesis audio volume.inthashCode()Deprecated.booleanDeprecated.enable phoneme level timestamp.booleanDeprecated.enable word level timestamp.voidsetConnectionTimeout(long connectionTimeout) Deprecated.voidsetEnablePhonemeTimestamp(boolean enablePhonemeTimestamp) Deprecated.enable phoneme level timestamp.voidsetEnableWordTimestamp(boolean enableWordTimestamp) Deprecated.enable word level timestamp.voidsetFirstPackageTimeout(long firstPackageTimeout) Deprecated.voidsetFormat(SpeechSynthesisAudioFormat format) Deprecated.synthesis audio format.voidsetHotFix(ParamHotFix hotFix) Deprecated.Hot fix configuration for pronunciation and replace rules.voidsetInstruction(String instruction) Deprecated.the following parameters take effect only in CosyVoice V3 and later versions. instruction for synthesis.voidsetLanguageHints(List<String> languageHints) Deprecated.language hints.voidsetPitchRate(float pitchRate) Deprecated.synthesis audio pitch.voidsetSeed(int seed) Deprecated.random seed.voidsetSpeechRate(float speechRate) Deprecated.synthesis audio speed.voidsetStyle(int style) Deprecated.synthesis stylevoidsetTextType(SpeechSynthesisTextType textType) Deprecated.Input text type.voidDeprecated.voice namevoidsetVolume(int volume) Deprecated.synthesis audio volume.toString()Deprecated.Methods inherited from class com.alibaba.dashscope.legacy_2x.base.FullDuplexServiceParam
getDirective, getHeaders, putHeader, setResourcesMethods inherited from class com.alibaba.dashscope.legacy_2x.base.FullDuplexParamBase
getApiKey, getInputs, getModel, getWorkspace, isSecurityCheck, setApiKey, setHeaders, setModel, setParameters, setSecurityCheck, setWorkspace
-
Constructor Details
-
SpeechSynthesisParam
Deprecated.
-
-
Method Details
-
getParameters
Deprecated.Description copied from class:FullDuplexParamBaseThe service parameters.- Specified by:
getParametersin classFullDuplexParamBase- Returns:
- The key/value parameters
-
getResources
Deprecated.Description copied from class:FullDuplexServiceParamGet the resources- Overrides:
getResourcesin classFullDuplexServiceParam- Returns:
- the resource object.
-
getStreamingData
Deprecated.Description copied from class:FullDuplexParamBaseGet the stream input data, only for websocket stream in and duplex mode. For binary data support: byte[] and ByteBuffer Otherwise should be String or Json serializable Object. For websocket stream in and duplex service must implement.- Specified by:
getStreamingDatain classFullDuplexParamBase- Returns:
- The stream input data.
-
builder
Deprecated. -
equals
Deprecated.- Overrides:
equalsin classFullDuplexServiceParam
-
canEqual
Deprecated.- Overrides:
canEqualin classFullDuplexServiceParam
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classFullDuplexServiceParam
-
getTextType
Deprecated.Input text type. -
getVoice
Deprecated.voice name -
getFormat
Deprecated.synthesis audio format. -
getVolume
public int getVolume()Deprecated.synthesis audio volume. -
getSpeechRate
public float getSpeechRate()Deprecated.synthesis audio speed. -
getPitchRate
public float getPitchRate()Deprecated.synthesis audio pitch. -
isEnableWordTimestamp
public boolean isEnableWordTimestamp()Deprecated.enable word level timestamp. -
isEnablePhonemeTimestamp
public boolean isEnablePhonemeTimestamp()Deprecated.enable phoneme level timestamp. -
getConnectionTimeout
public long getConnectionTimeout()Deprecated. -
getFirstPackageTimeout
public long getFirstPackageTimeout()Deprecated. -
getInstruction
Deprecated.the following parameters take effect only in CosyVoice V3 and later versions. instruction for synthesis. -
getSeed
public int getSeed()Deprecated.random seed. -
getLanguageHints
Deprecated.language hints. -
getStyle
public int getStyle()Deprecated.synthesis style -
getHotFix
Deprecated.Hot fix configuration for pronunciation and replace rules. -
setTextType
Deprecated.Input text type. -
setVoice
Deprecated.voice name -
setFormat
Deprecated.synthesis audio format. -
setVolume
public void setVolume(int volume) Deprecated.synthesis audio volume. -
setSpeechRate
public void setSpeechRate(float speechRate) Deprecated.synthesis audio speed. -
setPitchRate
public void setPitchRate(float pitchRate) Deprecated.synthesis audio pitch. -
setEnableWordTimestamp
public void setEnableWordTimestamp(boolean enableWordTimestamp) Deprecated.enable word level timestamp. -
setEnablePhonemeTimestamp
public void setEnablePhonemeTimestamp(boolean enablePhonemeTimestamp) Deprecated.enable phoneme level timestamp. -
setConnectionTimeout
public void setConnectionTimeout(long connectionTimeout) Deprecated. -
setFirstPackageTimeout
public void setFirstPackageTimeout(long firstPackageTimeout) Deprecated. -
setInstruction
Deprecated.the following parameters take effect only in CosyVoice V3 and later versions. instruction for synthesis. -
setSeed
public void setSeed(int seed) Deprecated.random seed. -
setLanguageHints
Deprecated.language hints. -
setStyle
public void setStyle(int style) Deprecated.synthesis style -
setHotFix
Deprecated.Hot fix configuration for pronunciation and replace rules. -
toString
Deprecated.- Overrides:
toStringin classFullDuplexServiceParam
-