Revert "feat: implement heuristic punctuation buffering for translations when context is enabled"

This commit is contained in:
Adolfo Reyna
2026-02-28 19:39:39 -05:00
parent f68111123d
commit 81cea12e0c
2 changed files with 14 additions and 40 deletions
+1 -1
View File
@@ -101,4 +101,4 @@ The project now features a high-performance, Apple Silicon-optimized pipeline th
- **Approach:**
- **Prompt Caching (`-c`):** Implemented a rolling context buffer that feeds the last 200 characters of previously transcribed text back into Whisper as an `initial_prompt`, maintaining sentence continuity.
- **Language Bypassing (`--lang`):** Added the ability to hardcode the source language to skip the Whisper language identification phase on every chunk.
- **Heuristic Punctuation Buffering:** When `-c` is enabled, English translations are buffered until a definitive punctuation mark (`.`, `?`, `!`) is reached, preventing grammatical errors caused by translating partial sentences.
- **Heuristic Punctuation Buffering (Reverted):** Briefly implemented a system to hold English translations until a definitive punctuation mark was reached to prevent grammatical errors. This was reverted because Whisper's punctuation generation is not 100% reliable, leading to translations getting "stuck" in the buffer indefinitely if no period was generated.