Transcript event API
These names are available directly from listenflow. All events carry utterance_id and
ts_offset_s, an offset in seconds from the start of input audio. Text events also carry an
optional speaker label. Append final text to the committed transcript and use partial text for
provisional display according to the engine's declared partial mode.
TranscriptEvent = UtteranceStart | Partial | Final | UtteranceEnd
module-attribute
UtteranceStart
dataclass
Bases: TranscriptEventBase
kind = 'utterance_start'
class-attribute
__init__(utterance_id, ts_offset_s)
Partial
dataclass
Bases: TranscriptEventBase
text
instance-attribute
speaker = None
class-attribute
instance-attribute
kind = 'partial'
class-attribute
__init__(utterance_id, ts_offset_s, text, speaker=None)
Final
dataclass
Bases: TranscriptEventBase
text
instance-attribute
speaker = None
class-attribute
instance-attribute
kind = 'final'
class-attribute
__init__(utterance_id, ts_offset_s, text, speaker=None)
UtteranceEnd
dataclass
Bases: TranscriptEventBase