Expand description
Shared transcript cleanup applied after every provider (JOE-1609).
Whisper (and some remote models) emit control / non-speech tokens that should
not leak into scripted txt/srt/json output. Normalization produces an
explicit NormalizationReport listing repairs and drops.
Structs§
- Normalization
Event - One normalization repair or warning (deterministic, no provider payloads).
- Normalization
Report - Report of repairs applied while normalizing a provider result.
Functions§
- detect_
repetition_ degeneration - Conservative transcript degeneration detector (JOE-1650).
- normalize_
result - Clean provider output into a stable, scriptable result.
- normalize_
result_ with_ report - Like
normalize_resultbut returns an explicit repair report. - truncate_
chars - UTF-8–safe truncation for error messages (never panics on char boundaries).
- validated_
segment - Validated segment constructor (rejects NaN/inverted spans).