Class QwenTtsRealtimeConfig

java.lang.Object
com.alibaba.dashscope.legacy_2x.audio.qwen_tts_realtime.QwenTtsRealtimeConfig

@Deprecated public class QwenTtsRealtimeConfig extends Object
Deprecated.
Author:
lengjiayi
  • Constructor Details

  • Method Details

    • getConfig

      public com.google.gson.JsonObject getConfig()
      Deprecated.
    • builder

      Deprecated.
    • getVoice

      @NonNull public @NonNull String getVoice()
      Deprecated.
      voice to be used in session
    • getResponseFormat

      public QwenTtsRealtimeAudioFormat getResponseFormat()
      Deprecated.
      response format
    • getMode

      public String getMode()
      Deprecated.
      mode
    • getLanguageType

      public String getLanguageType()
      Deprecated.
      languageType for tts
    • getSampleRate

      public Integer getSampleRate()
      Deprecated.
      sampleRate for tts , range [8000,16000,22050,24000,44100,48000]. default is 24000
    • getSpeechRate

      public Float getSpeechRate()
      Deprecated.
      speechRate for tts , range [0.5~2.0],default is 1.0
    • getVolume

      public Integer getVolume()
      Deprecated.
      volume for tts , range [0~100],default is 50
    • getFormat

      public String getFormat()
      Deprecated.
      format for tts, support mp3,wav,pcm,opus,default is pcm
    • getPitchRate

      public Float getPitchRate()
      Deprecated.
      pitchRate for tts , range [0.5~2.0],default is 1.0
    • getBitRate

      public Integer getBitRate()
      Deprecated.
      bitRate for tts , support 6~510,default is 128kbps. only work on format: opus/mp3
    • getEnableTn

      public Boolean getEnableTn()
      Deprecated.
      text normalization, default is true
    • getInstructions

      public String getInstructions()
      Deprecated.
      instructions for tts, default is null
    • getOptimizeInstructions

      public Boolean getOptimizeInstructions()
      Deprecated.
      instructions will optimize on server side, default is false
    • getParameters

      public Map<String,Object> getParameters()
      Deprecated.
      The extra parameters.
    • setVoice

      public void setVoice(@NonNull @NonNull String voice)
      Deprecated.
      voice to be used in session
    • setResponseFormat

      public void setResponseFormat(QwenTtsRealtimeAudioFormat responseFormat)
      Deprecated.
      response format
    • setMode

      public void setMode(String mode)
      Deprecated.
      mode
    • setLanguageType

      public void setLanguageType(String languageType)
      Deprecated.
      languageType for tts
    • setSampleRate

      public void setSampleRate(Integer sampleRate)
      Deprecated.
      sampleRate for tts , range [8000,16000,22050,24000,44100,48000]. default is 24000
    • setSpeechRate

      public void setSpeechRate(Float speechRate)
      Deprecated.
      speechRate for tts , range [0.5~2.0],default is 1.0
    • setVolume

      public void setVolume(Integer volume)
      Deprecated.
      volume for tts , range [0~100],default is 50
    • setFormat

      public void setFormat(String format)
      Deprecated.
      format for tts, support mp3,wav,pcm,opus,default is pcm
    • setPitchRate

      public void setPitchRate(Float pitchRate)
      Deprecated.
      pitchRate for tts , range [0.5~2.0],default is 1.0
    • setBitRate

      public void setBitRate(Integer bitRate)
      Deprecated.
      bitRate for tts , support 6~510,default is 128kbps. only work on format: opus/mp3
    • setEnableTn

      public void setEnableTn(Boolean enableTn)
      Deprecated.
      text normalization, default is true
    • setInstructions

      public void setInstructions(String instructions)
      Deprecated.
      instructions for tts, default is null
    • setOptimizeInstructions

      public void setOptimizeInstructions(Boolean optimizeInstructions)
      Deprecated.
      instructions will optimize on server side, default is false
    • setParameters

      public void setParameters(Map<String,Object> parameters)
      Deprecated.
      The extra parameters.
    • equals

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

      protected boolean canEqual(Object other)
      Deprecated.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

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