Text Selection To Timestamps
Use When
- An LLM has identified the best text span but should not be trusted to
output precise timestamps.
- You need exact clip ranges from transcript text selections.
- The source transcript already has word-level timings.
Core Approach
- Let the model choose text, not timestamps.
- Normalize source words and selected words consistently.
- Search near the expected time first if any approximate location is
known.
- Match contiguous word sequences back to the transcript.
- Convert the recovered span into one or more keep ranges.
Inputs
- source transcript words with start/end times
- selected/refined words or text span
- optional approximate start time
- total duration for clamping
Outputs
- exact keep ranges
- recovered duration
- confidence notes when matching is ambiguous