Adding VAD to whisper.cpp to reduce hallucinations on audio w silences (#1412)

This commit is contained in:
Raivis Dejus 2026-03-07 07:58:04 +02:00 committed by GitHub
commit 04c07c6cae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 14 additions and 1 deletions

View file

@ -37,7 +37,7 @@ class TestWhisperCpp:
# Combine all segment texts
full_text = " ".join(segment.text for segment in segments)
assert "Bien venu" in full_text
assert "Bien venu" in full_text or "bienvenu" in full_text.lower()
def test_transcribe_word_level_timestamps(self):
transcription_options = TranscriptionOptions(