TanStack

GeneratedAudio

Type Alias: GeneratedAudio

ts
type GeneratedAudio = GeneratedMediaSource & object;

Defined in: packages/ai/src/types.ts:1904

A single generated audio output

Type Declaration

contentType?

ts
optional contentType: string;

Content type of the audio (e.g., 'audio/wav', 'audio/mp3')

duration?

ts
optional duration: number;

Duration of the generated audio in seconds