OpenAIChatCompletionAudioResponse

@Serializable
data class OpenAIChatCompletionAudioResponse(val id: String, val data: String? = null, val expiresAt: Long? = null, val transcript: String? = null)

Audio data in an OpenAI assistant message.

Present when the audio output modality is requested via modalities: ["audio"] with OpenAIChatCompletionAudioParam.

See also

Constructors

Link copied to clipboard
constructor(id: String, data: String? = null, expiresAt: Long? = null, transcript: String? = null)

Properties

Link copied to clipboard
val data: String?

Base64 encoded audio bytes generated by the model, in the format specified in the request. null when the payload is not included.

Link copied to clipboard
@SerialName(value = "expires_at")
val expiresAt: Long?

Unix timestamp (in seconds) for when this audio response no longer remains accessible on the server. null if not provided.

Link copied to clipboard
val id: String

Unique identifier for this audio response. Can be passed back as OpenAIAssistantAudioParam.id in a subsequent request to reference a previous audio response in multi-turn conversations.

Link copied to clipboard

Transcript of the audio generated by the model. null when no transcript is available.