Interface TextToSpeechOptions

All Superinterfaces:
ModelOptions
All Known Implementing Classes:
DefaultTextToSpeechOptions, ElevenLabsTextToSpeechOptions, OpenAiAudioSpeechOptions

public interface TextToSpeechOptions extends ModelOptions
Interface for text-to-speech model options. Defines the common, portable options that should be supported by all implementations.
Author:
Alexandros Pappas
  • Method Details

    • builder

      static TextToSpeechOptions.Builder builder()
      Creates a new TextToSpeechOptions.Builder to create the default TextToSpeechOptions.
      Returns:
      Returns a new TextToSpeechOptions.Builder.
    • getModel

      @Nullable String getModel()
      Returns the model to use for text-to-speech.
      Returns:
      The model name.
    • getVoice

      @Nullable String getVoice()
      Returns the voice to use for text-to-speech.
      Returns:
      The voice identifier.
    • getFormat

      @Nullable String getFormat()
      Returns the output format for the generated audio.
      Returns:
      The output format (e.g., "mp3", "wav").
    • getSpeed

      @Nullable Double getSpeed()
      Returns the speed of the generated speech.
      Returns:
      The speech speed.