Class DashScopeAudioSpeechOptions

java.lang.Object
com.alibaba.cloud.ai.dashscope.audio.DashScopeAudioSpeechOptions
All Implemented Interfaces:
org.springframework.ai.audio.tts.TextToSpeechOptions, org.springframework.ai.model.ModelOptions

public class DashScopeAudioSpeechOptions extends Object implements org.springframework.ai.audio.tts.TextToSpeechOptions
Author:
kevinlin09, xuguan
  • Constructor Details

    • DashScopeAudioSpeechOptions

      public DashScopeAudioSpeechOptions()
  • Method Details

    • builder

      public static DashScopeAudioSpeechOptions.Builder builder()
    • getModel

      public String getModel()
      Specified by:
      getModel in interface org.springframework.ai.audio.tts.TextToSpeechOptions
    • setModel

      public void setModel(String model)
    • getText

      public String getText()
    • setText

      public void setText(String text)
    • getVoice

      public String getVoice()
      Specified by:
      getVoice in interface org.springframework.ai.audio.tts.TextToSpeechOptions
    • setVoice

      public void setVoice(String voice)
    • getRequestTextType

      public DashScopeAudioSpeechApi.RequestTextType getRequestTextType()
    • setRequestTextType

      public void setRequestTextType(DashScopeAudioSpeechApi.RequestTextType requestTextType)
    • getSampleRate

      public Integer getSampleRate()
    • setSampleRate

      public void setSampleRate(Integer sampleRate)
    • getVolume

      public Integer getVolume()
    • setVolume

      public void setVolume(Integer volume)
    • getSpeed

      public Double getSpeed()
      Specified by:
      getSpeed in interface org.springframework.ai.audio.tts.TextToSpeechOptions
    • setSpeed

      public void setSpeed(Double speed)
    • getPitch

      public Double getPitch()
    • setPitch

      public void setPitch(Double pitch)
    • getEnableWordTimestamp

      public Boolean getEnableWordTimestamp()
    • setEnableWordTimestamp

      public void setEnableWordTimestamp(Boolean enableWordTimestamp)
    • getEnablePhonemeTimestamp

      public Boolean getEnablePhonemeTimestamp()
    • setEnablePhonemeTimestamp

      public void setEnablePhonemeTimestamp(Boolean enablePhonemeTimestamp)
    • getEnableSsml

      public Boolean getEnableSsml()
    • setEnableSsml

      public void setEnableSsml(Boolean enableSsml)
    • getBitRate

      public Integer getBitRate()
    • setBitRate

      public void setBitRate(Integer bitRate)
    • getSeed

      public Integer getSeed()
    • setSeed

      public void setSeed(Integer seed)
    • getLanguageHints

      public List<String> getLanguageHints()
    • setLanguageHints

      public void setLanguageHints(List<String> languageHints)
    • getInstruction

      public String getInstruction()
    • setInstruction

      public void setInstruction(String instruction)
    • getResponseFormat

      public DashScopeAudioSpeechApi.ResponseFormat getResponseFormat()
    • setResponseFormat

      public void setResponseFormat(DashScopeAudioSpeechApi.ResponseFormat responseFormat)
    • getFormat

      public String getFormat()
      Specified by:
      getFormat in interface org.springframework.ai.audio.tts.TextToSpeechOptions
    • copy

      Specified by:
      copy in interface org.springframework.ai.audio.tts.TextToSpeechOptions