Skip to content

Commit b2db125

Browse files
committed
fix: handle misheard filler words in base enhancement prompt
- Add detection for unnatural conjunctions/articles that may be misheard fillers - Ensures base prompt catches cases where Whisper misrecognizes "um" as "and" etc - Provides solid foundation for all enhancement presets (Email, Prompts, Commit) This addresses acoustic confusion where filler sounds are mistranscribed as real words at the neural network level before normalization can catch them.
1 parent 78ddf84 commit b2db125

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src-tauri/src/ai/prompts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ pub fn build_enhancement_prompt(
7676
const DEFAULT_PROMPT: &str = r#"THEN clean up this voice transcription:
7777
7878
- Remove filler words (um, uh, like) and stutters
79+
- Fix unnatural conjunctions or articles that seem out of place
7980
- Fix grammar, spelling, and common homophones
8081
- Correct technical terms and programming terminology
8182
- Format numbers, dates, times naturally

0 commit comments

Comments
 (0)