mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-05 18:09:22 +08:00
Merge pull request #329 from mhThomsen/master
(Bug fix) 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):
|
if sr != 16000 and (sr % 16000 == 0):
|
||||||
step = sr // 16000
|
step = sr // 16000
|
||||||
x = x[:, ::step]
|
x = x[:,::step]
|
||||||
sr = 16000
|
sr = 16000
|
||||||
|
|
||||||
if sr not in self.sample_rates:
|
if sr not in self.sample_rates:
|
||||||
|
|||||||
Reference in New Issue
Block a user