Class SpeechSynthesisParam


@Deprecated public class SpeechSynthesisParam extends HalfDuplexServiceParam
Deprecated.
  • Constructor Details

  • Method Details

    • getHttpBody

      public com.google.gson.JsonObject getHttpBody()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the batch request data. Http body include {"model": "model_name", "input": "input data", "parameters": "The request parameters"}
      Specified by:
      getHttpBody in class HalfDuplexParamBase
      Returns:
      The http request body
    • getParameters

      public Map<String,Object> getParameters()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      The service parameters.
      Overrides:
      getParameters in class HalfDuplexServiceParam
      Returns:
      The parameters
    • getInput

      public Object getInput()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the request input data.
      Specified by:
      getInput in class HalfDuplexParamBase
      Returns:
      The input data object.
    • getBinaryData

      public ByteBuffer getBinaryData()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the binary data, only websocket, if no binary data, return null.
      Specified by:
      getBinaryData in class HalfDuplexParamBase
      Returns:
      The binary data
    • validate

      public void validate() throws InputRequiredException
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Validate the input and parameters.
      Specified by:
      validate in class HalfDuplexParamBase
      Throws:
      InputRequiredException - Missing input fields.
    • builder

      Deprecated.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class HalfDuplexServiceParam
    • canEqual

      protected boolean canEqual(Object other)
      Deprecated.
      Overrides:
      canEqual in class HalfDuplexServiceParam
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class HalfDuplexServiceParam
    • getText

      @NonNull public @NonNull String getText()
      Deprecated.
      The input text.
    • getTextType

      public SpeechSynthesisTextType getTextType()
      Deprecated.
      Input text type.
    • getFormat

      public SpeechSynthesisAudioFormat getFormat()
      Deprecated.
      synthesis audio format.
    • getSampleRate

      public int getSampleRate()
      Deprecated.
      synthesis audio sample rate.
    • getVolume

      public int getVolume()
      Deprecated.
      synthesis audio volume.
    • getRate

      public float getRate()
      Deprecated.
      synthesis audio speed.
    • getPitch

      public float getPitch()
      Deprecated.
      synthesis audio pitch.
    • isEnableWordTimestamp

      public boolean isEnableWordTimestamp()
      Deprecated.
      enable word level timestamp.
    • isEnablePhonemeTimestamp

      public boolean isEnablePhonemeTimestamp()
      Deprecated.
      enable phoneme level timestamp.
    • setText

      public void setText(@NonNull @NonNull String text)
      Deprecated.
      The input text.
    • setTextType

      public void setTextType(SpeechSynthesisTextType textType)
      Deprecated.
      Input text type.
    • setFormat

      public void setFormat(SpeechSynthesisAudioFormat format)
      Deprecated.
      synthesis audio format.
    • setSampleRate

      public void setSampleRate(int sampleRate)
      Deprecated.
      synthesis audio sample rate.
    • setVolume

      public void setVolume(int volume)
      Deprecated.
      synthesis audio volume.
    • setRate

      public void setRate(float rate)
      Deprecated.
      synthesis audio speed.
    • setPitch

      public void setPitch(float pitch)
      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.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class HalfDuplexParamBase