mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-05 18:09:22 +08:00
Merge pull request #170 from gabrielziegler3/169-fix-min-speech-duration-bug
Fix #169
This commit is contained in:
@@ -239,7 +239,7 @@ def get_speech_timestamps(audio: torch.Tensor,
|
||||
triggered = False
|
||||
continue
|
||||
|
||||
if current_speech:
|
||||
if current_speech and (audio_length_samples - current_speech['start']) > min_speech_samples:
|
||||
current_speech['end'] = audio_length_samples
|
||||
speeches.append(current_speech)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user