Interface TextToSpeechModel
- All Known Implementing Classes:
OpenAiTextToSpeechModel
A model that can synthesize audio from text.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ModelProviderprovider()synthesize(TextToSpeechRequest request) Given a text-to-speech request, synthesizes speech audio.default TextToSpeechResponsesynthesize(String text) Convenience method for simple speech generation needs.
-
Method Details
-
synthesize
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
-