Documentation
¶
Overview ¶
Package subtitle writes the segments of a transcript as subtitles, in SRT or WebVTT format, whose cues are the segments, in turn, until one is spoken by another speaker, or after a silence, or would make the cue too long, or have too much text, to read
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer writes the segments of a transcript as subtitles, in SRT, or WebVTT, format, as they're added, so they can be written as they're transcribed. A cue is the segments, in turn, until one is spoken by another speaker, or after a silence, or would make the cue too long, or have too much text, to read. A segment isn't split. Once a write fails, nothing more is written, and Add and Close return its error.
func NewWriter ¶
NewWriter returns a writer of subtitles, in the format, which is SRT, or VTT, or an error for another format