From fd90d687f4d91db03ac35a1085662417271a161e Mon Sep 17 00:00:00 2001 From: tset-tset-tset <47290160+tset-tset-tset@users.noreply.github.com> Date: Sat, 6 May 2023 08:25:52 +0900 Subject: [PATCH] Resolving argument mismatch errors --- utils/audio_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/audio_utils.py b/utils/audio_utils.py index 9afa5e6..ceeee06 100644 --- a/utils/audio_utils.py +++ b/utils/audio_utils.py @@ -225,7 +225,7 @@ def featurize_melspec(f=None, offset=None, duration=None, y=None, sr=None, if augment_fn is not None: y = augment_fn(y) - S = librosa.feature.melspectrogram(y, sr, hop_length=hop_length).T + S = librosa.feature.melspectrogram(y=y, sr=sr, hop_length=hop_length).T S = librosa.amplitude_to_db(S, ref=np.max) if spec_augment_fn is not None: S = spec_augment_fn(S)