summaryrefslogtreecommitdiffstats
path: root/app/stt.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-07-25 23:07:03 -0700
committeryum <yum.food.vr@gmail.com>2025-07-25 23:07:03 -0700
commit6815848fb8ed06b59b6d7e57096143f1f840e7db (patch)
tree17591313c9f540b08830cf7790e195ef06c6a3e8 /app/stt.py
parenta7f9b7b5fb33bead6bcfb0ad6867b57f2ddc42af (diff)
Work more on hallucination filteringv1.0.0-beta03
Diffstat (limited to 'app/stt.py')
-rw-r--r--app/stt.py5
1 files changed, 3 insertions, 2 deletions
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}', " +