Package org.springframework.ai.audio.tts
Interface TextToSpeechModel
- All Superinterfaces:
Model<TextToSpeechPrompt,
TextToSpeechResponse>
- All Known Implementing Classes:
ElevenLabsTextToSpeechModel
Interface for the text to speech model.
- Author:
- Alexandros Pappas
-
Method Summary
Modifier and TypeMethodDescriptiondefault byte[]
call
(TextToSpeechPrompt prompt) Executes a method call to the AI model.default TextToSpeechOptions
-
Method Details
-
call
-
call
Description copied from interface:Model
Executes a method call to the AI model.- Specified by:
call
in interfaceModel<TextToSpeechPrompt,
TextToSpeechResponse> - Parameters:
prompt
- the request object to be sent to the AI model- Returns:
- the response from the AI model
-
getDefaultOptions
-