Package org.springframework.ai.audio.tts
Class TextToSpeechPrompt
java.lang.Object
org.springframework.ai.audio.tts.TextToSpeechPrompt
- All Implemented Interfaces:
ModelRequest<TextToSpeechMessage>
Implementation of the
ModelRequest
interface for the text to speech prompt.- Author:
- Alexandros Pappas
-
Constructor Summary
ConstructorsConstructorDescriptionTextToSpeechPrompt
(String text) TextToSpeechPrompt
(String text, TextToSpeechOptions options) TextToSpeechPrompt
(TextToSpeechMessage message) TextToSpeechPrompt
(TextToSpeechMessage message, TextToSpeechOptions options) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Retrieves the instructions or input required by the AI model.Retrieves the customizable options for AI model interactions.int
hashCode()
void
setOptions
(TextToSpeechOptions options) toString()
-
Constructor Details
-
TextToSpeechPrompt
-
TextToSpeechPrompt
-
TextToSpeechPrompt
-
TextToSpeechPrompt
-
-
Method Details
-
getInstructions
Description copied from interface:ModelRequest
Retrieves the instructions or input required by the AI model.- Specified by:
getInstructions
in interfaceModelRequest<TextToSpeechMessage>
- Returns:
- the instructions or input required by the AI model
-
getOptions
Description copied from interface:ModelRequest
Retrieves the customizable options for AI model interactions.- Specified by:
getOptions
in interfaceModelRequest<TextToSpeechMessage>
- Returns:
- the customizable options for AI model interactions
-
setOptions
-
equals
-
hashCode
public int hashCode() -
toString
-