Class SpeechMessage
java.lang.Object
org.springframework.ai.openai.audio.speech.SpeechMessage
Deprecated.
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) Deprecated.Constructs a newSpeechMessage
object with the given text. -
Method Summary
-
Constructor Details
-
SpeechMessage
Deprecated.Constructs a newSpeechMessage
object with the given text.- Parameters:
text
- the text to be converted to speech
-
-
Method Details
-
getText
Deprecated.Returns the text of this speech message.- Returns:
- the text of this speech message
-
setText
Deprecated.Sets the text of this speech message.- Parameters:
text
- the new text for this speech message
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-
TextToSpeechMessage
from the core package instead. This class will be removed in a future release.