Skip to main content

finalize_transcript

Function finalize_transcript 

Source
fn finalize_transcript(
    parts: &[String],
    normalize: impl FnOnce(&str) -> String,
) -> (String, String)
Expand description

The joined raw recognition, and the rewritten text over it, in that order. The order is load-bearing: the normalizer reads the whole take at once, so a sentence crossing a window boundary is repaired with full context - normalizing per window would rewrite each fragment without the context around the cut.