Skip to content

dictate_polish

diapason.speech.dictate_polish

Lightweight dictation polish (Diapason-inspired fillers / punctuation).

polish_dictation(raw, *, aggressive=True)

Clean raw STT text: drop fillers, fix spacing, capitalize sentences.

polish_pipeline(raw, *, polish=True, use_dictionary=True, llm_polish=False, email_mode=False, llm_timeout_ms=2000, dictionary_path=None)

Local polish → dictionary → optional LLM. Safe for paste path only.

reparer_homophones_de_commande(text)

Répare les homophones de verbes d'ordre en tête d'énoncé.

strip_whisper_credits(text)

Raye les génériques hallucinés, puis nettoie la ponctuation orpheline.