Skip to main content
Version: Next

Interface: TranscriptionSegment

Defined in: types/stt.ts:254

Structure that represent single Segment of transcription.

Properties

avgLogprob

avgLogprob: number

Defined in: types/stt.ts:261

Average log probability calculated across all tokens in a segment.


compressionRatio

compressionRatio: number

Defined in: types/stt.ts:262

Compression ration achieved on a given segment.


end

end: number

Defined in: types/stt.ts:256

Timestamp of the end of the segment in audio (in seconds).


start

start: number

Defined in: types/stt.ts:255

Timestamp of the beginning of the segment in audio (in seconds).


temperature

temperature: number

Defined in: types/stt.ts:260

Temperature for which given segment was computed.


text

text: string

Defined in: types/stt.ts:257

Full text of the given segment as a string.


tokens

tokens: number[]

Defined in: types/stt.ts:259

Raw tokens represented as table of integers.


words?

optional words: Word[]

Defined in: types/stt.ts:258

If verbose set to true in DecodingOptions, it returns word-level timestamping as an array of Word.