Interface GeneratedAudio

A single generated audio artifact.

At least one of url or base64 will be populated depending on the provider's response format.

interface GeneratedAudio {
    url?: string;
    base64?: string;
    mimeType?: string;
    durationSec?: number;
    sampleRate?: number;
    providerMetadata?: Record<string, unknown>;
}

Properties

url?: string

Public URL where the audio can be downloaded.

base64?: string

Base64-encoded audio data.

mimeType?: string

MIME type of the audio (e.g. 'audio/mpeg', 'audio/wav').

durationSec?: number

Duration of the generated audio in seconds.

sampleRate?: number

Sample rate in Hz (e.g. 44100, 48000).

providerMetadata?: Record<string, unknown>

Provider-specific metadata (job ID, generation params, etc.).