Increase the default value of speech_pad_ms to 400 ms (#179)
This commit is contained in:
@@ -20,7 +20,7 @@ def get_speech_timestamps(
|
||||
max_speech_duration_s: float = float("inf"),
|
||||
min_silence_duration_ms: int = 2000,
|
||||
window_size_samples: int = 1024,
|
||||
speech_pad_ms: int = 200,
|
||||
speech_pad_ms: int = 400,
|
||||
) -> List[dict]:
|
||||
"""This method is used for splitting long audios into speech chunks using silero VAD.
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ def test_vad(jfk_path):
|
||||
segments, _ = model.transcribe(
|
||||
jfk_path,
|
||||
vad_filter=True,
|
||||
vad_parameters=dict(min_silence_duration_ms=500),
|
||||
vad_parameters=dict(min_silence_duration_ms=500, speech_pad_ms=200),
|
||||
)
|
||||
segments = list(segments)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user