Class SpeechPrompt
java.lang.Object
org.springframework.ai.openai.audio.speech.SpeechPrompt
- All Implemented Interfaces:
org.springframework.ai.model.ModelRequest<SpeechMessage>
public class SpeechPrompt
extends Object
implements org.springframework.ai.model.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 TypeMethodDescriptionbooleanorg.springframework.ai.model.ModelOptionsinthashCode()
-
Constructor Details
-
SpeechPrompt
-
SpeechPrompt
-
SpeechPrompt
-
SpeechPrompt
-
-
Method Details
-
getInstructions
- Specified by:
getInstructionsin interfaceorg.springframework.ai.model.ModelRequest<SpeechMessage>
-
getOptions
public org.springframework.ai.model.ModelOptions getOptions()- Specified by:
getOptionsin interfaceorg.springframework.ai.model.ModelRequest<SpeechMessage>
-
equals
-
hashCode
public int hashCode()
-