Record Class DashScopeAudioSpeechApi.Request.RequestPayload.RequestPayloadParameters
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.api.DashScopeAudioSpeechApi.Request.RequestPayload.RequestPayloadParameters
- Enclosing class:
- DashScopeAudioSpeechApi.Request.RequestPayload
public static record DashScopeAudioSpeechApi.Request.RequestPayload.RequestPayloadParameters(Integer volume, DashScopeAudioSpeechApi.RequestTextType textType, String voice, Integer sampleRate, Double rate, DashScopeAudioSpeechApi.ResponseFormat format, Double pitch, Boolean enableSsml, Integer bitRate, Integer seed, List<String> languageHints, String instruction, Boolean phonemeTimestampEnabled, Boolean wordTimestampEnabled)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRequestPayloadParameters(Integer volume, DashScopeAudioSpeechApi.RequestTextType textType, String voice, Integer sampleRate, Double rate, DashScopeAudioSpeechApi.ResponseFormat format, Double pitch, Boolean enableSsml, Integer bitRate, Integer seed, List<String> languageHints, String instruction, Boolean phonemeTimestampEnabled, Boolean wordTimestampEnabled) Creates an instance of aRequestPayloadParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbitRate()Returns the value of thebitRaterecord component.Returns the value of theenableSsmlrecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinstructionrecord component.Returns the value of thelanguageHintsrecord component.Returns the value of thephonemeTimestampEnabledrecord component.pitch()Returns the value of thepitchrecord component.rate()Returns the value of theraterecord component.Returns the value of thesampleRaterecord component.seed()Returns the value of theseedrecord component.textType()Returns the value of thetextTyperecord component.final StringtoString()Returns a string representation of this record class.voice()Returns the value of thevoicerecord component.volume()Returns the value of thevolumerecord component.Returns the value of thewordTimestampEnabledrecord component.
-
Constructor Details
-
RequestPayloadParameters
public RequestPayloadParameters(Integer volume, DashScopeAudioSpeechApi.RequestTextType textType, String voice, Integer sampleRate, Double rate, DashScopeAudioSpeechApi.ResponseFormat format, Double pitch, Boolean enableSsml, Integer bitRate, Integer seed, List<String> languageHints, String instruction, Boolean phonemeTimestampEnabled, Boolean wordTimestampEnabled) Creates an instance of aRequestPayloadParametersrecord class.- Parameters:
volume- the value for thevolumerecord componenttextType- the value for thetextTyperecord componentvoice- the value for thevoicerecord componentsampleRate- the value for thesampleRaterecord componentrate- the value for theraterecord componentformat- the value for theformatrecord componentpitch- the value for thepitchrecord componentenableSsml- the value for theenableSsmlrecord componentbitRate- the value for thebitRaterecord componentseed- the value for theseedrecord componentlanguageHints- the value for thelanguageHintsrecord componentinstruction- the value for theinstructionrecord componentphonemeTimestampEnabled- the value for thephonemeTimestampEnabledrecord componentwordTimestampEnabled- the value for thewordTimestampEnabledrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
volume
Returns the value of thevolumerecord component.- Returns:
- the value of the
volumerecord component
-
textType
Returns the value of thetextTyperecord component.- Returns:
- the value of the
textTyperecord component
-
voice
Returns the value of thevoicerecord component.- Returns:
- the value of the
voicerecord component
-
sampleRate
Returns the value of thesampleRaterecord component.- Returns:
- the value of the
sampleRaterecord component
-
rate
Returns the value of theraterecord component.- Returns:
- the value of the
raterecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
pitch
Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-
enableSsml
Returns the value of theenableSsmlrecord component.- Returns:
- the value of the
enableSsmlrecord component
-
bitRate
Returns the value of thebitRaterecord component.- Returns:
- the value of the
bitRaterecord component
-
seed
Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
languageHints
Returns the value of thelanguageHintsrecord component.- Returns:
- the value of the
languageHintsrecord component
-
instruction
Returns the value of theinstructionrecord component.- Returns:
- the value of the
instructionrecord component
-
phonemeTimestampEnabled
Returns the value of thephonemeTimestampEnabledrecord component.- Returns:
- the value of the
phonemeTimestampEnabledrecord component
-
wordTimestampEnabled
Returns the value of thewordTimestampEnabledrecord component.- Returns:
- the value of the
wordTimestampEnabledrecord component
-