Open History to see the last commit
1---
2id: TTSSegment
3title: TTSSegment
4---
5
6Defined in: packages/ai/src/types.ts:2865
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:2869
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:2867
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:2875
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:2871
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:2873
68
69Voice heard in this segment, when the provider reports it.