InspectSubtitleChunk interface

Signature:

export interface InspectSubtitleChunk

Properties

Property Type Description

endTimestamp

Interval

fragments

SubtitleFragment[]

When the subtitle has individually timed fragments (words or short chunks) such as a transcription result, the result fragments

isComplete

boolean

Whether the subtitle chunk is "complete" or may later be revised. The chunk need not be a full sentence/utterance to be complete, but a partial chunk is one which may later be extended/revised a number of times

startTimestamp

Interval

streamKey

StreamKey

teletext

TeletextLine[]

If the stream is a Teletext caption/subtitle, this is a representation of the source page containing some layout, colouring, ect info

text

string

The full text contained in this chunk, which may not be split or formatted as for final output yet - to observe this insert a SubtitleConvert

ttml?

{ text: string; mediatime_ms: number; }

(Optional) If the stream is TTML - full source of that TTML document. Note this will generally represent a single cue or ISD