Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Class References
Function References
Interface References
Type Alias References
Variable References

AudioGenerationOptions

Interface: AudioGenerationOptions<TProviderOptions>

Defined in: packages/typescript/ai/src/types.ts:1274

Options for audio generation (music, sound effects, etc.). These are the common options supported across providers.

Type Parameters

TProviderOptions

TProviderOptions extends object = object

Properties

duration?

ts
optional duration: number;
optional duration: number;

Defined in: packages/typescript/ai/src/types.ts:1282

Desired duration in seconds


logger

ts
logger: InternalLogger;
logger: InternalLogger;

Defined in: packages/typescript/ai/src/types.ts:1290

Internal logger threaded from the generateAudio() entry point. Adapters must call logger.request() before the SDK call and logger.errors() in catch blocks.


model

ts
model: string;
model: string;

Defined in: packages/typescript/ai/src/types.ts:1278

The model to use for audio generation


modelOptions?

ts
optional modelOptions: TProviderOptions;
optional modelOptions: TProviderOptions;

Defined in: packages/typescript/ai/src/types.ts:1284

Model-specific options for audio generation


prompt

ts
prompt: string;
prompt: string;

Defined in: packages/typescript/ai/src/types.ts:1280

Text description of the desired audio