Cleaning Options API
whisper_vtt2srt.domain.options.CleaningOptions
dataclass
Configuration options for the VTT to SRT cleaning pipeline.
Attributes:
| Name | Type | Description |
|---|---|---|
remove_pixelation |
bool
|
If True, removes the "karaoke effect" where text accumulates over multiple blocks (e.g., "Hello" -> "Hello world"). Defaults to True. |
remove_glitches |
bool
|
If True, removes blocks with invisible duration (< 50ms) that cause player flickering. Defaults to True. |
simplify_formatting |
bool
|
If True, strips internal formatting tags
like |
remove_metadata |
bool
|
If True, removes positioning tags often found in VTT
(e.g., |
merge_short_lines |
bool
|
If True, aggressively merges short lines into single lines. Defaults to False. |
remove_sound_descriptions |
bool
|
If True, removes typical sound descriptions
like |