Skip to content

Commit 9cf9eec

Browse files
authored
Overlap tweak
1 parent 26c8a3d commit 9cf9eec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

faster_whisper/vad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,9 @@ def batched_vad(
404404
chunk_len = len(chunks[0])
405405
a_second = window_size_samples * 31
406406

407-
if chunk_len > a_second * 3:
407+
if chunk_len > a_second * 6:
408408
overlap_samples = a_second * 3
409-
elif chunk_len > a_second * 1:
409+
elif chunk_len > a_second * 2:
410410
overlap_samples = a_second * 1
411411
else:
412412
overlap_samples = window_size_samples

0 commit comments

Comments
 (0)