Class SpeechPrompt
java.lang.Object
org.springframework.ai.openai.audio.speech.SpeechPrompt
- All Implemented Interfaces:
ModelRequest<SpeechMessage>
Deprecated.
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) Deprecated.SpeechPrompt
(String instructions, OpenAiAudioSpeechOptions speechOptions) Deprecated.SpeechPrompt
(SpeechMessage speechMessage) Deprecated.SpeechPrompt
(SpeechMessage speechMessage, OpenAiAudioSpeechOptions speechOptions) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Deprecated.Retrieves the instructions or input required by the AI model.Deprecated.Retrieves the customizable options for AI model interactions.int
hashCode()
Deprecated.
-
Constructor Details
-
SpeechPrompt
Deprecated. -
SpeechPrompt
Deprecated. -
SpeechPrompt
Deprecated. -
SpeechPrompt
Deprecated.
-
-
Method Details
-
getInstructions
Deprecated.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
Deprecated.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
Deprecated. -
hashCode
public int hashCode()Deprecated.
-
TextToSpeechPrompt
from the core package instead. This class will be removed in a future release.