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

TTSResult

Interface: TTSResult

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

Result of text-to-speech generation.

Properties

audio

ts
audio: string;
audio: string;

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

Base64-encoded audio data


contentType?

ts
optional contentType: string;
optional contentType: string;

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

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

Duration of the audio in seconds, if available


format

ts
format: string;
format: string;

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

Audio format of the generated audio


id

ts
id: string;
id: string;

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

Unique identifier for the generation


model

ts
model: string;
model: string;

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

Model used for generation