Skip to content

Commit

Permalink
Merge pull request #170 from gabrielziegler3/169-fix-min-speech-durat…
Browse files Browse the repository at this point in the history
…ion-bug

Fix #169
  • Loading branch information
snakers4 authored Feb 10, 2022
2 parents 76687cb + 0e8e080 commit 6cc08b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils_vad.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6cc08b1

Please sign in to comment.