/** * A finished cue, and the last message with its `cue_index`. Each cue is committed * before any message for the next, so at most one cue is open at a time, and a session * that ends normally commits every cue. * * The cue keeps the text its partials showed, except that its last word can move to * the next cue: when the text after it starts with punctuation, such as ",", that has * no room in this cue, the word moves with it so the next cue doesn't start with it. */ export interface SubtitlingCommittedSubtitle { messageType: "committed_subtitle"; /** The cue's position in the session, counting from 0. */ cueIndex: number; /** The cue's text, one entry per line. */ lines: string[]; /** When to show the cue, in milliseconds since the session_started message. It doesn't change after the cue's first message. */ startMs: number; /** When to hide the cue, in milliseconds since the session_started message. */ endMs: number; }