Skip to content

Commit

Permalink
Update vad.py with more sane speech_pad_ms: int = 4000
Browse files Browse the repository at this point in the history
In all my tests speech_pad_ms: int = 400 was too small. All other VAD numbers were good. Making speech_pad_ms: int = 4000 2x the min_silence_duration_ms: int = 2000 fixed all my problems.
  • Loading branch information
montvid authored Nov 19, 2024
1 parent be9fb36 commit 9a9671d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faster_whisper/vad.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class VadOptions:
min_speech_duration_ms: int = 0
max_speech_duration_s: float = float("inf")
min_silence_duration_ms: int = 2000
speech_pad_ms: int = 400
speech_pad_ms: int = 4000


def get_speech_timestamps(
Expand Down

0 comments on commit 9a9671d

Please sign in to comment.