Class ApiChatCompletionsResponseMessageAudio


  • public class ApiChatCompletionsResponseMessageAudio
    extends Object
    If the audio output modality is requested, this object contains data about the audio response from the model.
    Since:
    8.5.0
    • Method Detail

      • data

        public FileContent data()
        Audio data generated by the model, in the format specified in the request.
        Returns:
        The audio data.
      • expiresAt

        public Instant expiresAt()
        The time when this audio response will no longer be accessible on the server for use in multi-turn conversations.
        Returns:
        The expiration time.
      • id

        public String id()
        Unique identifier for this audio response.
        Returns:
        The audio ID.
      • transcript

        public String transcript()
        Transcript of the audio generated by the model.
        Returns:
        The transcript.