From efe821d215536ddef1ddbff5db2641c8ce410976 Mon Sep 17 00:00:00 2001 From: kris Date: Tue, 17 Jan 2023 21:09:34 +0000 Subject: [PATCH] Fix warning --- transcoder/audio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transcoder/audio.py b/transcoder/audio.py index 278e555..40fb4e5 100644 --- a/transcoder/audio.py +++ b/transcoder/audio.py @@ -55,8 +55,8 @@ class Audio: 'float32').reshape((f.channels, -1), order='F') a = librosa.core.to_mono(data) - a = librosa.resample(a, f.samplerate, - self.sample_rate, + a = librosa.resample(a, orig_sr=f.samplerate, + target_sr=self.sample_rate, res_type='scipy', scale=True).flatten() return a