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

TTSResult

Interface: TTSResult

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

Result of text-to-speech generation.

Properties

audio

ts
audio: string;
audio: string;

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

Base64-encoded audio data


contentType?

ts
optional contentType: string;
optional contentType: string;

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

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


duration?

ts
optional duration: number;
optional duration: number;

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

Duration of the audio in seconds, if available


format

ts
format: string;
format: string;

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

Audio format of the generated audio


id

ts
id: string;
id: string;

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

Unique identifier for the generation


model

ts
model: string;
model: string;

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

Model used for generation