mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-05 18:09:22 +08:00
collab fx
This commit is contained in:
1320
silero-vad.ipynb
1320
silero-vad.ipynb
File diff suppressed because it is too large
Load Diff
@@ -20,7 +20,6 @@ def validate(model,
|
|||||||
def read_audio(path: str,
|
def read_audio(path: str,
|
||||||
sampling_rate: int = 16000):
|
sampling_rate: int = 16000):
|
||||||
|
|
||||||
assert torchaudio.get_audio_backend() == 'soundfile'
|
|
||||||
wav, sr = torchaudio.load(path)
|
wav, sr = torchaudio.load(path)
|
||||||
|
|
||||||
if wav.size(0) > 1:
|
if wav.size(0) > 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user