类 TTSOptions

java.lang.Object
io.agentscope.core.model.tts.TTSOptions

public class TTSOptions extends Object
Options for TTS synthesis.

This class provides configuration options for text-to-speech synthesis, including voice selection, audio format, and speech parameters.

Example usage:


 TTSOptions options = TTSOptions.builder()
     .voice("Cherry")
     .sampleRate(24000)
     .format("wav")
     .speed(1.0f)
     .build();
 
  • 方法详细资料

    • getVoice

      public String getVoice()
    • getSampleRate

      public Integer getSampleRate()
    • getFormat

      public String getFormat()
    • getSpeed

      public Float getSpeed()
    • getVolume

      public Float getVolume()
    • getPitch

      public Float getPitch()
    • getLanguage

      public String getLanguage()
    • builder

      public static TTSOptions.Builder builder()
      Creates a new builder for TTSOptions.
      返回:
      a new Builder instance