TanStack

TTSResult

Interface: TTSResult

Defined in: packages/ai/src/types.ts:2259

Result of text-to-speech generation.

Properties

artifacts?

ts
optional artifacts?: PersistedArtifactRef[];

Defined in: packages/ai/src/types.ts:2275

Persisted artifact references for generated assets, when available


audio

ts
audio: string;

Defined in: packages/ai/src/types.ts:2265

Base64-encoded audio data


contentType?

ts
optional contentType?: string;

Defined in: packages/ai/src/types.ts:2271

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


duration?

ts
optional duration?: number;

Defined in: packages/ai/src/types.ts:2269

Duration of the audio in seconds, if available


format

ts
format: string;

Defined in: packages/ai/src/types.ts:2267

Audio format of the generated audio


id

ts
id: string;

Defined in: packages/ai/src/types.ts:2261

Unique identifier for the generation


model

ts
model: string;

Defined in: packages/ai/src/types.ts:2263

Model used for generation


usage?

ts
optional usage?: TokenUsage<ProviderUsageDetails>;

Defined in: packages/ai/src/types.ts:2273

Token usage information (if provided by the adapter)