Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
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:1470

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:1478

Desired duration in seconds


logger

ts
logger: InternalLogger;
logger: InternalLogger;

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

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:1474

The model to use for audio generation


modelOptions?

ts
optional modelOptions: TProviderOptions;
optional modelOptions: TProviderOptions;

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

Model-specific options for audio generation


prompt

ts
prompt: string;
prompt: string;

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

Text description of the desired audio