Skip to main content

Module cleanup

Module cleanup 

Source
Expand description

Post-transcription text cleanup ( “flow”).

Two backends:

  • rules (default): pure on-device regex/heuristics — no network, no model
  • openrouter: LLM rewrite via chat completions (optional, explicit)

Cleanup is opt-in at the CLI/library boundary so raw ASR stays available.

Re-exports§

pub use openrouter::OpenRouterCleanup;
pub use rules::RulesCleanup;

Modules§

openrouter
LLM-assisted cleanup via OpenRouter chat completions.
rules
On-device rule-based cleanup.

Structs§

CleanupResult
Result of a cleanup pass.

Enums§

CleanupProviderKind
Where cleanup runs.
CleanupStyle
How aggressively / in what shape to clean transcript text.
SegmentCleanupPolicy
How to treat ASR segments after cleaning the full transcript text.

Traits§

TextCleanup
Pluggable cleanup backend.

Functions§

apply_cleanup
Apply cleanup to a full transcription result.
apply_cleanup_with_segments
Like apply_cleanup with explicit segment policy.
cleanup_text
Clean a bare string (stdin / text file path) without a full transcription result.