From e1d9be42611294dfbeb7d7f013164a56907b20a5 Mon Sep 17 00:00:00 2001 From: Prakash Joshi Pax <101010368+Beingpax@users.noreply.github.com> Date: Thu, 6 Mar 2025 18:50:42 +0545 Subject: [PATCH] Update LibWhisper.swift --- VoiceInk/Whisper/LibWhisper.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/VoiceInk/Whisper/LibWhisper.swift b/VoiceInk/Whisper/LibWhisper.swift index ecf8440..e85727a 100644 --- a/VoiceInk/Whisper/LibWhisper.swift +++ b/VoiceInk/Whisper/LibWhisper.swift @@ -79,6 +79,10 @@ actor WhisperContext { params.offset_ms = 0 params.no_context = true params.single_segment = false + + // Adjusted parameters to reduce hallucination + params.suppress_blank = true // Keep suppressing blank outputs + params.suppress_nst = true // Additional suppression of non-speech tokens whisper_reset_timings(context) print("About to run whisper_full")