Class SpeechMessage
java.lang.Object
org.springframework.ai.openai.audio.speech.SpeechMessage
The
SpeechMessage class represents a single text message to be converted to
speech by the OpenAI TTS API.- Since:
- 1.0.0-M1
- Author:
- Ahmed Yousri
-
Constructor Summary
ConstructorsConstructorDescriptionSpeechMessage(String text) Constructs a newSpeechMessageobject with the given text. -
Method Summary
-
Constructor Details
-
SpeechMessage
Constructs a newSpeechMessageobject with the given text.- Parameters:
text- the text to be converted to speech
-
-
Method Details