Skip to main content

Module words

Module words 

Source
Expand description

Word timing input: TimedWord in OUTPUT time, plus engine adapters.

Structs§

TimedWord
One spoken word (end_ms exclusive).

Constants§

MAP_DURATION_TOLERANCE_MS
A mapped word may differ from its source duration by at most this much; a larger difference means a removed range cut through the word, so it is dropped.

Functions§

words_from_seconds
Engine adapter: (text, start_seconds, end_seconds) -> milliseconds. Negative or non-finite times are clamped to 0; rounding is to nearest ms. This is the shape of rightkit_asr::TimedWord/TimedToken.
words_from_transcript
Maps a source Transcript onto an output timeline (cut/edit).