AudioMetadata

@Serializable
data class AudioMetadata(val startOffset: Duration? = null, val endOffset: Duration? = null)

Metadata describes the input audio content.

Set this in Part.audio_metadata or FunctionResponsePart.audio_metadata when inline_data or file_data contains audio to configure static audio preprocessing.

Constructors

Link copied to clipboard
constructor(startOffset: Duration? = null, endOffset: Duration? = null)

Properties

Link copied to clipboard
@Serializable(with = DurationStringSerializer::class)
val endOffset: Duration? = null

The end offset of the audio, relative to the start of the audio stream.

Link copied to clipboard
@Serializable(with = DurationStringSerializer::class)
val startOffset: Duration? = null

The start offset of the audio, relative to the start of the audio stream.