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 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 a RequestPayloadParameters record class.
      Parameters:
      volume - the value for the volume record component
      textType - the value for the textType record component
      voice - the value for the voice record component
      sampleRate - the value for the sampleRate record component
      rate - the value for the rate record component
      format - the value for the format record component
      pitch - the value for the pitch record component
      enableSsml - the value for the enableSsml record component
      bitRate - the value for the bitRate record component
      seed - the value for the seed record component
      languageHints - the value for the languageHints record component
      instruction - the value for the instruction record component
      phonemeTimestampEnabled - the value for the phonemeTimestampEnabled record component
      wordTimestampEnabled - the value for the wordTimestampEnabled record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • volume

      public Integer volume()
      Returns the value of the volume record component.
      Returns:
      the value of the volume record component
    • textType

      Returns the value of the textType record component.
      Returns:
      the value of the textType record component
    • voice

      public String voice()
      Returns the value of the voice record component.
      Returns:
      the value of the voice record component
    • sampleRate

      public Integer sampleRate()
      Returns the value of the sampleRate record component.
      Returns:
      the value of the sampleRate record component
    • rate

      public Double rate()
      Returns the value of the rate record component.
      Returns:
      the value of the rate record component
    • format

      Returns the value of the format record component.
      Returns:
      the value of the format record component
    • pitch

      public Double pitch()
      Returns the value of the pitch record component.
      Returns:
      the value of the pitch record component
    • enableSsml

      public Boolean enableSsml()
      Returns the value of the enableSsml record component.
      Returns:
      the value of the enableSsml record component
    • bitRate

      public Integer bitRate()
      Returns the value of the bitRate record component.
      Returns:
      the value of the bitRate record component
    • seed

      public Integer seed()
      Returns the value of the seed record component.
      Returns:
      the value of the seed record component
    • languageHints

      public List<String> languageHints()
      Returns the value of the languageHints record component.
      Returns:
      the value of the languageHints record component
    • instruction

      public String instruction()
      Returns the value of the instruction record component.
      Returns:
      the value of the instruction record component
    • phonemeTimestampEnabled

      public Boolean phonemeTimestampEnabled()
      Returns the value of the phonemeTimestampEnabled record component.
      Returns:
      the value of the phonemeTimestampEnabled record component
    • wordTimestampEnabled

      public Boolean wordTimestampEnabled()
      Returns the value of the wordTimestampEnabled record component.
      Returns:
      the value of the wordTimestampEnabled record component