Class SpeechPrompt
java.lang.Object
org.springframework.ai.openai.audio.speech.SpeechPrompt
- All Implemented Interfaces:
ModelRequest<SpeechMessage>
The
SpeechPrompt
class represents a request to the OpenAI Text-to-Speech (TTS)
API. It contains a list of SpeechMessage
objects, each representing a piece of
text to be converted to speech.- Since:
- 1.0.0-M1
- Author:
- Ahmed Yousri
-
Constructor Summary
ConstructorDescriptionSpeechPrompt
(String instructions) SpeechPrompt
(String instructions, OpenAiAudioSpeechOptions speechOptions) SpeechPrompt
(SpeechMessage speechMessage) SpeechPrompt
(SpeechMessage speechMessage, OpenAiAudioSpeechOptions speechOptions) -
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()
-
Constructor Details
-
SpeechPrompt
-
SpeechPrompt
-
SpeechPrompt
-
SpeechPrompt
-
-
Method Details
-
getInstructions
Description copied from interface:ModelRequest
Retrieves the instructions or input required by the AI model.- Specified by:
getInstructions
in interfaceModelRequest<SpeechMessage>
- 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<SpeechMessage>
- Returns:
- the customizable options for AI model interactions
-
equals
-
hashCode
public int hashCode()
-