mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-04 17:39:22 +08:00
slices in correct dimension (audio dim), so batch size is not reduced
This commit is contained in:
@@ -34,7 +34,7 @@ class OnnxWrapper():
|
||||
|
||||
if sr != 16000 and (sr % 16000 == 0):
|
||||
step = sr // 16000
|
||||
x = x[::step]
|
||||
x = x[:,::step]
|
||||
sr = 16000
|
||||
|
||||
if sr not in self.sample_rates:
|
||||
|
||||
Reference in New Issue
Block a user