diff options
| author | yum <yum.food.vr@gmail.com> | 2025-07-25 23:07:03 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-07-25 23:07:03 -0700 |
| commit | 6815848fb8ed06b59b6d7e57096143f1f840e7db (patch) | |
| tree | 17591313c9f540b08830cf7790e195ef06c6a3e8 /app/stt.py | |
| parent | a7f9b7b5fb33bead6bcfb0ad6867b57f2ddc42af (diff) | |
Work more on hallucination filteringv1.0.0-beta03
Diffstat (limited to 'app/stt.py')
| -rw-r--r-- | app/stt.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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}', " + |
