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:ModelResponseRetrieves the list of generated outputs by the AI model.- Specified by:
getResultsin interfaceModelResponse<Speech>- Returns:
- the list of generated outputs
-
getResult
Description copied from interface:ModelResponseRetrieves the result of the AI model.- Specified by:
getResultin interfaceModelResponse<Speech>- Returns:
- the result generated by the AI model
-
getMetadata
Description copied from interface:ModelResponseRetrieves the response metadata associated with the AI model's response.- Specified by:
getMetadatain interfaceModelResponse<Speech>- Returns:
- the response metadata
-
equals
-
hashCode
public int hashCode() -
toString
-