From ce3bed0d38e222c60d6fc19dfcbbccacbfea9034 Mon Sep 17 00:00:00 2001 From: kris Date: Sat, 13 Jul 2019 14:32:21 +0100 Subject: [PATCH] Try resampling with scipy and scaling audio power --- transcoder/audio.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transcoder/audio.py b/transcoder/audio.py index 91890f7..f8aded5 100644 --- a/transcoder/audio.py +++ b/transcoder/audio.py @@ -39,7 +39,8 @@ class Audio: a = librosa.core.to_mono(data) a = librosa.resample(a, f.samplerate, - self.sample_rate).flatten() + self.sample_rate, + res_type='scipy', scale=True).flatten() return a