mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-04 09:29:22 +08:00
Reword a comment
This commit is contained in:
@@ -379,7 +379,7 @@ def get_speech_timestamps(audio: torch.Tensor,
|
||||
prev_end = next_start = temp_end = 0
|
||||
possible_ends = []
|
||||
else:
|
||||
# Standard cut at max_speech_duration_s: prefer last valid silence (prev_end) if available
|
||||
# Legacy max-speech cut (use_max_poss_sil_at_max_speech=False): prefer last valid silence (prev_end) if available
|
||||
if prev_end:
|
||||
current_speech['end'] = prev_end
|
||||
speeches.append(current_speech)
|
||||
|
||||
Reference in New Issue
Block a user