From 92535beb0fbdcfd871c5e1505be54bf2ce7b3eca Mon Sep 17 00:00:00 2001 From: Aditya Singh <31953737+adigeak@users.noreply.github.com> Date: Sun, 11 Apr 2021 10:23:56 +0530 Subject: [PATCH] Update download_prepare_data.py load have update Normalization to normalize https://pytorch.org/audio/stable/backend.html#load --- data/download_prepare_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/download_prepare_data.py b/data/download_prepare_data.py index 1dcd767..5344cc8 100644 --- a/data/download_prepare_data.py +++ b/data/download_prepare_data.py @@ -37,7 +37,7 @@ def get_keywords(self): def load_audio(self, audio_file, desired_samples): - sound, sr = torchaudio.load(filepath=audio_file, normalization=True, + sound, sr = torchaudio.load(filepath=audio_file, normalize=True, num_frames=desired_samples) return sound, sr