From 0cf9db5e6966e47e3f7f3b5ce9f11f00715768b1 Mon Sep 17 00:00:00 2001 From: mrq Date: Mon, 13 Mar 2023 01:33:45 +0000 Subject: [PATCH] oops --- src/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index 508a7e6..45f43d1 100755 --- a/src/utils.py +++ b/src/utils.py @@ -1162,7 +1162,7 @@ def slice_dataset( voice, trim_silence=True, start_offset=0, end_offset=0 ): if trim_silence: sliced = torchaudio.functional.vad( sliced, sample_rate ) - sliced, sample_rate = resample( sample_rate, 22050 ) + sliced, sample_rate = resample( sliced, sample_rate, 22050 ) torchaudio.save(f"{indir}/audio/{file}", sliced, sample_rate) segments +=1