Package org.springframework.ai.audio.tts
Interface TextToSpeechModel
- All Superinterfaces:
Model<TextToSpeechPrompt,,TextToSpeechResponse> StreamingModel<TextToSpeechPrompt,,TextToSpeechResponse> StreamingTextToSpeechModel
- All Known Implementing Classes:
ElevenLabsTextToSpeechModel,OpenAiAudioSpeechModel
public interface TextToSpeechModel
extends Model<TextToSpeechPrompt,TextToSpeechResponse>, StreamingTextToSpeechModel
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 TextToSpeechOptionsMethods inherited from interface org.springframework.ai.audio.tts.StreamingTextToSpeechModel
stream, stream, stream
-
Method Details
-
call
-
call
Description copied from interface:ModelExecutes a method call to the AI model.- Specified by:
callin interfaceModel<TextToSpeechPrompt,TextToSpeechResponse> - Parameters:
prompt- the request object to be sent to the AI model- Returns:
- the response from the AI model
-
getDefaultOptions
-