Class SpeechResponse
java.lang.Object
org.springframework.ai.openai.audio.speech.SpeechResponse
- All Implemented Interfaces:
ModelResponse<Speech>
Deprecated.
Creates a new instance of SpeechResponse with the given speech result.
- Since:
- 1.0.0-M1
- Author:
- Ahmed Yousri
-
Constructor Summary
ConstructorsConstructorDescriptionSpeechResponse
(Speech speech) Deprecated.Creates a new instance of SpeechResponse with the given speech result.SpeechResponse
(Speech speech, OpenAiAudioSpeechResponseMetadata speechResponseMetadata) Deprecated.Creates a new instance of SpeechResponse with the given speech result and speech response metadata. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Deprecated.Retrieves the response metadata associated with the AI model's response.Deprecated.Retrieves the result of the AI model.Deprecated.Retrieves the list of generated outputs by the AI model.int
hashCode()
Deprecated.
-
Constructor Details
-
SpeechResponse
Deprecated.Creates a new instance of SpeechResponse with the given speech result.- Parameters:
speech
- the speech result to be set in the SpeechResponse- See Also:
-
SpeechResponse
Deprecated.Creates a new instance of SpeechResponse with the given speech result and speech response metadata.- Parameters:
speech
- the speech result to be set in the SpeechResponsespeechResponseMetadata
- the speech response metadata to be set in the SpeechResponse- See Also:
-
-
Method Details
-
getResult
Deprecated.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
-
getResults
Deprecated.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
-
getMetadata
Deprecated.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
Deprecated. -
hashCode
public int hashCode()Deprecated.
-
TextToSpeechResponse
from the core package instead. This class will be removed in a future release.