Class OpenAiTextToSpeechResponse

java.lang.Object
dev.langchain4j.model.openai.internal.audio.texttospeech.OpenAiTextToSpeechResponse

public class OpenAiTextToSpeechResponse extends Object
Represents the response of the OpenAI speech API. The body is raw binary audio (not JSON), so this is built from the raw HTTP response rather than deserialized; contentType carries the audio format reported by the API.
  • Constructor Details

    • OpenAiTextToSpeechResponse

      public OpenAiTextToSpeechResponse(byte[] audio, String contentType)
  • Method Details