A long recording is rarely all speech. Lectures pause, interviews wait for the next question, and a meeting recording holds minutes of nobody talking. Whisper still has to say something about those quiet stretches, and the words it produces there are guesses, not speech. The fix is to remove the silence before Whisper sees it. faster-whisper, a reimplementation of OpenAI’s Whisper using CTranslate2, integrates the Silero VAD model to filter out parts of the audio without speech.
Turn on the VAD filter
Install faster-whisper, then transcribe with vad_filter=True:
pip install faster-whisper
from faster_whisper import WhisperModel
model = WhisperModel("turbo", device="cpu", compute_type="int8")
segments, _ = model.transcribe("practice-lecture.wav", vad_filter=True)
for segment in segments:
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
Unlike openai-whisper, faster-whisper does not need ffmpeg installed on the system: the audio is decoded with the Python library PyAV, which bundles the ffmpeg libraries. Use a practice recording with obvious pauses — for example, record yourself reading the fictional sentence “The lighthouse keeper named Mara checked the lamp at noon.”, wait five seconds in silence, then read “The supply boat comes on Tuesdays.” — and save it as practice-lecture.wav.
Check what the filter removed
The default behaviour is conservative and only removes silence longer than 2 seconds, so a five-second pause is skipped and a short breath between words is kept. Read the segments against the recording:
| Check | What you should see |
|---|---|
| Spoken parts | A segment for “The lighthouse keeper named Mara checked the lamp at noon.” and one for “The supply boat comes on Tuesdays.” |
| The pause | No segment covering the five seconds of silence between the two sentences |
| Word order | The two sentences appear in the order they were spoken |
| Short pauses | Brief pauses inside a sentence are not cut out of the middle of a word |
If a segment still covers the silence, the filter was off — check that vad_filter=True is in the transcribe call. Expected result. We checked the faster-whisper README for the VAD filter and its defaults. We did not run faster-whisper on a sample recording.
Tune the silence length
If the default 2-second threshold keeps too much quiet audio, shorten it with vad_parameters:
segments, _ = model.transcribe(
"practice-lecture.wav",
vad_filter=True,
vad_parameters=dict(min_silence_duration_ms=500),
)
A smaller value makes the filter more aggressive: it will cut shorter pauses, so listen to the result and raise the value again if words at the ends of sentences start to disappear. Note that the VAD filter is enabled by default for batched transcription, so if you use BatchedInferencePipeline, silence is already being skipped.
Limits
The VAD filter is a faster-whisper feature, not part of the openai-whisper command line, so this guide does not apply to a plain whisper command. The filter decides what counts as speech, so a very quiet voice or a noisy room can be misread, and a segment the filter removes is gone from the transcript — keep the original recording until you have checked the result. We did not run faster-whisper, so no transcript here is a measured result.
