Interface TextToSpeechModel

All Known Implementing Classes:
OpenAiTextToSpeechModel

@Experimental public interface TextToSpeechModel
A model that can synthesize audio from text.
  • Method Details

    • synthesize

      default TextToSpeechResponse synthesize(String text)
      Convenience method for simple speech generation needs. Given an input text, synthesizes speech audio.
      Parameters:
      text - The input text.
      Returns:
      The generated speech response.
    • synthesize

      Given a text-to-speech request, synthesizes speech audio.
      Parameters:
      request - The speech request containing the input text and optional parameters.
      Returns:
      The generated speech response.
    • provider

      default ModelProvider provider()