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
ConstructorsConstructorDescriptionSpeechPrompt(String instructions) SpeechPrompt(String instructions, OpenAiAudioSpeechOptions speechOptions) SpeechPrompt(SpeechMessage speechMessage) SpeechPrompt(SpeechMessage speechMessage, OpenAiAudioSpeechOptions speechOptions) -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the instructions or input required by the AI model.Retrieves the customizable options for AI model interactions.inthashCode()
-
Constructor Details
-
SpeechPrompt
-
SpeechPrompt
-
SpeechPrompt
-
SpeechPrompt
-
-
Method Details
-
getInstructions
Description copied from interface:ModelRequestRetrieves the instructions or input required by the AI model.- Specified by:
getInstructionsin interfaceModelRequest<SpeechMessage>- Returns:
- the instructions or input required by the AI model
-
getOptions
Description copied from interface:ModelRequestRetrieves the customizable options for AI model interactions.- Specified by:
getOptionsin interfaceModelRequest<SpeechMessage>- Returns:
- the customizable options for AI model interactions
-
equals
-
hashCode
public int hashCode()
-