Skip to main content
Version: 0.8.x

Interface: TranscriptionSegment

Defined in: types/stt.ts:237

Structure that represent single Segment of transcription.

Properties​

avgLogprob​

avgLogprob: number

Defined in: types/stt.ts:244

Average log probability calculated across all tokens in a segment.


compressionRatio​

compressionRatio: number

Defined in: types/stt.ts:245

Compression ration achieved on a given segment.


end​

end: number

Defined in: types/stt.ts:239

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


start​

start: number

Defined in: types/stt.ts:238

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


temperature​

temperature: number

Defined in: types/stt.ts:243

Temperature for which given segment was computed.


text​

text: string

Defined in: types/stt.ts:240

Full text of the given segment as a string.


tokens​

tokens: number[]

Defined in: types/stt.ts:242

Raw tokens represented as table of integers.


words?​

optional words: Word[]

Defined in: types/stt.ts:241

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