Class SpeechResponse
java.lang.Object
org.springframework.ai.openai.audio.speech.SpeechResponse
- All Implemented Interfaces:
org.springframework.ai.model.ModelResponse<Speech>
public class SpeechResponse
extends Object
implements org.springframework.ai.model.ModelResponse<Speech>
Creates a new instance of SpeechResponse with the given speech result.
- Since:
- 1.0.0-M1
- Author:
- Ahmed Yousri
-
Constructor Summary
ConstructorsConstructorDescriptionSpeechResponse(Speech speech) Creates a new instance of SpeechResponse with the given speech result.SpeechResponse(Speech speech, OpenAiAudioSpeechResponseMetadata speechResponseMetadata) Creates a new instance of SpeechResponse with the given speech result and speech response metadata. -
Method Summary
-
Constructor Details
-
SpeechResponse
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
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
- Specified by:
getResultin interfaceorg.springframework.ai.model.ModelResponse<Speech>
-
getResults
- Specified by:
getResultsin interfaceorg.springframework.ai.model.ModelResponse<Speech>
-
getMetadata
- Specified by:
getMetadatain interfaceorg.springframework.ai.model.ModelResponse<Speech>
-
equals
-
hashCode
public int hashCode()
-