Class TextToSpeechResponse
java.lang.Object
dev.langchain4j.model.audio.TextToSpeechResponse
Response containing the audio generated from text.
-
Constructor Summary
ConstructorsConstructorDescriptionTextToSpeechResponse(Audio audio) Creates a new response with the given audio. -
Method Summary
Modifier and TypeMethodDescriptionaudio()static TextToSpeechResponseCreates a new response with the given audio.
-
Constructor Details
-
TextToSpeechResponse
Creates a new response with the given audio.- Parameters:
audio- The generated audio
-
-
Method Details
-
audio
- Returns:
- The generated audio
-
from
Creates a new response with the given audio.- Parameters:
audio- The generated audio- Returns:
- A new response
-