mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-05 18:09:22 +08:00
drop_chunks fix
This commit is contained in:
@@ -624,6 +624,8 @@ def drop_chunks(tss: List[dict],
|
|||||||
chunks.append((wav[cur_start: i['start']]))
|
chunks.append((wav[cur_start: i['start']]))
|
||||||
cur_start = i['end']
|
cur_start = i['end']
|
||||||
|
|
||||||
|
chunks.append(wav[cur_start:])
|
||||||
|
|
||||||
return torch.cat(chunks)
|
return torch.cat(chunks)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user