InputAudio

data class InputAudio(val type: String = "input_audio", val data: String, val format: InputAudio.Format) : InputContent(source)

Represents an audio input to the model.

Author

Konstantin Pavlov

Constructors

Link copied to clipboard
constructor(type: String = "input_audio", data: String, format: InputAudio.Format)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

The format of the audio data.

Properties

Link copied to clipboard
@SerialName(value = "data")
val data: String

Base64-encoded audio data.

Link copied to clipboard

The format of the audio data. Currently supported formats are "mp3" and "wav".

Link copied to clipboard
@SerialName(value = "type")
open override val type: String

The type of the input item. Always "input_audio".