How silence suppression works
mainSilence suppression adjusts Whisper's predicted timestamps to prevent them from starting too early or ending too late relative to the actual speech. It is enabled by default via suppress_silence=True.
Methods of detection:
- Relative Loudness (Default): Determines non-speech timestamps based on how loud a section is relative to its neighbors. Most effective when speech is significantly louder than background noise.
- Silero VAD: Uses the Silero Voice Activity Detector for more robust detection. Enable this by setting
vad=True.
Note on Versions:
- In 2.X, silence suppression is a post-inference timestamp adjustment, allowing it to work with other ASR models.
- The older feature of suppressing timestamp tokens during inference is disabled by default but can be enabled using
suppress_ts_tokens=True.