Package org.springframework.ai.audio.tts
Class TextToSpeechResponse
java.lang.Object
org.springframework.ai.audio.tts.TextToSpeechResponse
- All Implemented Interfaces:
ModelResponse<Speech>
Implementation of the
ModelResponse
interface for the text to speech response.- Author:
- Alexandros Pappas
-
Constructor Summary
ConstructorsConstructorDescriptionTextToSpeechResponse
(List<Speech> results) TextToSpeechResponse
(List<Speech> results, TextToSpeechResponseMetadata textToSpeechResponseMetadata) -
Method Summary
-
Constructor Details
-
TextToSpeechResponse
-
TextToSpeechResponse
public TextToSpeechResponse(List<Speech> results, TextToSpeechResponseMetadata textToSpeechResponseMetadata)
-
-
Method Details
-
getResults
Description copied from interface:ModelResponse
Retrieves the list of generated outputs by the AI model.- Specified by:
getResults
in interfaceModelResponse<Speech>
- Returns:
- the list of generated outputs
-
getResult
Description copied from interface:ModelResponse
Retrieves the result of the AI model.- Specified by:
getResult
in interfaceModelResponse<Speech>
- Returns:
- the result generated by the AI model
-
getMetadata
Description copied from interface:ModelResponse
Retrieves the response metadata associated with the AI model's response.- Specified by:
getMetadata
in interfaceModelResponse<Speech>
- Returns:
- the response metadata
-
equals
-
hashCode
public int hashCode() -
toString
-