Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

TTSSegment.md

69 lines1.4 KB

1---
2id: TTSSegment
3title: TTSSegment
4---
5​
6Defined in: [packages/ai/src/types.ts:2535](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2535)
7​
8A stretch of audio attributable to one turn (multi-voice) or one utterance
9(single voice). This is what tells a consumer which turn is where.
10​
11## Properties
12​
13### endSeconds
14​
15```ts
16endSeconds: number;
17```
18​
19Defined in: [packages/ai/src/types.ts:2539](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2539)
20​
21End of the segment in seconds.
22​
23***
24​
25### startSeconds
26​
27```ts
28startSeconds: number;
29```
30​
31Defined in: [packages/ai/src/types.ts:2537](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2537)
32​
33Start of the segment in seconds.
34​
35***
36​
37### text?
38​
39```ts
40optional text?: string;
41```
42​
43Defined in: [packages/ai/src/types.ts:2545](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2545)
44​
45Text spoken in this segment, when the provider reports it.
46​
47***
48​
49### turnIndex?
50​
51```ts
52optional turnIndex?: number;
53```
54​
55Defined in: [packages/ai/src/types.ts:2541](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2541)
56​
57Index into the request's `turns`, when the provider reports it.
58​
59***
60​
61### voice?
62​
63```ts
64optional voice?: string;
65```
66​
67Defined in: [packages/ai/src/types.ts:2543](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2543)
68​
69Voice heard in this segment, when the provider reports it.