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

TTSSegment.md

69 lines1.4 KB

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

A stretch of audio attributable to one turn (multi-voice) or one utterance (single voice). This is what tells a consumer which turn is where.

Properties

endSeconds

endSeconds: number;

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

End of the segment in seconds.


startSeconds

startSeconds: number;

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

Start of the segment in seconds.


text?

optional text?: string;

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

Text spoken in this segment, when the provider reports it.


turnIndex?

optional turnIndex?: number;

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

Index into the request's turns, when the provider reports it.


voice?

optional voice?: string;

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

Voice heard in this segment, when the provider reports it.