Class SpeechResponse

java.lang.Object
org.springframework.ai.openai.audio.speech.SpeechResponse
All Implemented Interfaces:
ModelResponse<Speech>

@Deprecated public class SpeechResponse extends Object implements ModelResponse<Speech>
Deprecated.
Use TextToSpeechResponse from the core package instead. This class will be removed in a future release.
Creates a new instance of SpeechResponse with the given speech result.
Since:
1.0.0-M1
Author:
Ahmed Yousri
  • Constructor Details

    • SpeechResponse

      public SpeechResponse(Speech speech)
      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

      public SpeechResponse(Speech speech, OpenAiAudioSpeechResponseMetadata speechResponseMetadata)
      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 SpeechResponse
      speechResponseMetadata - the speech response metadata to be set in the SpeechResponse
      See Also:
  • Method Details