Skip to main content

Module postprocess

Module postprocess 

Source
Expand description

Shared transcript cleanup applied after every provider.

Whisper (and some remote models) emit control / non-speech tokens that should not leak into scripted txt/srt/json output.

Functions§

normalize_result
Clean provider output into a stable, scriptable result.
truncate_chars
UTF-8–safe truncation for error messages (never panics on char boundaries).