From 6815848fb8ed06b59b6d7e57096143f1f840e7db Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 25 Jul 2025 23:07:03 -0700 Subject: Work more on hallucination filtering --- app/stt.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/stt.py') diff --git a/app/stt.py b/app/stt.py index 8ab83a5..9947bae 100644 --- a/app/stt.py +++ b/app/stt.py @@ -578,8 +578,9 @@ class Whisper: s.avg_logprob, s.no_speech_prob, s.compression_ratio, audio_len_s) - # Check with ML model for "Thank you" hallucinations - if self.hallucination_filter.is_thank_you_hallucination(seg): + # Apply hallucination filter. This is a statistical model trained + # on personal speech data. + if self.hallucination_filter.is_hallucination(seg): if self.cfg["enable_debug_mode"]: log(f"Drop probable hallucination (case 4) " + f"(text='{s.text}', " + -- cgit v1.2.3