AudioResponseFormat

@Serializable
data class AudioResponseFormat(val bitRate: Int? = null, val delivery: Delivery? = null, val mimeType: String? = null, val sampleRate: Int? = null)

Configuration for audio-specific output formatting.

Constructors

Link copied to clipboard
constructor(bitRate: Int? = null, delivery: Delivery? = null, mimeType: String? = null, sampleRate: Int? = null)

Properties

Link copied to clipboard
val bitRate: Int? = null

Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).

Link copied to clipboard
val delivery: Delivery? = null

Optional. Delivery mode for the generated content.

Link copied to clipboard
val mimeType: String? = null

Optional. The MIME type of the audio output.

Link copied to clipboard
val sampleRate: Int? = null

Optional. Sample rate for the generated audio in Hertz.