dictate_polish
dictate_polish
¶
Lightweight dictation polish (Diapason-inspired fillers / punctuation).
Functions:¶
strip_whisper_credits
¶
Raye les génériques hallucinés, puis nettoie la ponctuation orpheline.
Source code in src/diapason/speech/dictate_polish.py
reparer_homophones_de_commande
¶
Répare les homophones de verbes d'ordre en tête d'énoncé.
Source code in src/diapason/speech/dictate_polish.py
polish_dictation
¶
Clean raw STT text: drop fillers, fix spacing, capitalize sentences.
Source code in src/diapason/speech/dictate_polish.py
polish_pipeline
¶
polish_pipeline(
raw: str,
*,
polish: bool = True,
use_dictionary: bool = True,
llm_polish: bool = False,
email_mode: bool = False,
llm_timeout_ms: int = 2000,
dictionary_path: Optional[str] = None,
) -> str
Local polish → dictionary → optional LLM. Safe for paste path only.