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

Result of text-to-speech generation.

Properties

audio

ts
audio: string;
audio: string;

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

Base64-encoded audio data


contentType?

ts
optional contentType: string;
optional contentType: string;

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

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

Duration of the audio in seconds, if available


format

ts
format: string;
format: string;

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

Audio format of the generated audio


id

ts
id: string;
id: string;

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

Unique identifier for the generation


model

ts
model: string;
model: string;

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

Model used for generation