mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-04 17:39:22 +08:00
fx
This commit is contained in:
2
utils.py
2
utils.py
@@ -190,7 +190,7 @@ class VADiterator:
|
||||
stacked = torch.hstack([self.prev, wav_chunk])
|
||||
self.prev = wav_chunk
|
||||
|
||||
overlap_chunks = [stacked[i:i+4000] for i in range(500, 4001, self.step)] # 500 step is good enough
|
||||
overlap_chunks = [stacked[i:i+4000] for i in range(self.step, 4001, self.step)] # 500 step is good enough
|
||||
return torch.vstack(overlap_chunks)
|
||||
|
||||
def state(self, model_out):
|
||||
|
||||
Reference in New Issue
Block a user