Skip to main content

Module export

Module export 

Source
Expand description

SRT, WebVTT, plain-text and timing-JSON export. UTF-8, exact millisecond timestamps.

Enums§

Newline
Line terminator for exported files.

Functions§

subtitle_timestamp
HH:MM:SS<sep>mmm for a millisecond offset: , gives the SubRip and whisper.cpp timestamps form (01:02:03,004), . gives the WebVTT form (01:02:03.004). Shared by to_srt, to_vtt and any whisper-compatible JSON writer (#1095).
to_plain_text
Plain text: one line per cue.
to_srt
SubRip: numbered cues, HH:MM:SS,mmm --> HH:MM:SS,mmm, blank line after each.
to_timing_json
Timing JSON shared by every consumer (same shape rightkit-asr emits): segments are the cues, words the word timings, times in seconds.
to_vtt
WebVTT: WEBVTT header, HH:MM:SS.mmm timestamps, &/</> escaped.