From c0ea64daf305bd50c5be64376f7a7cbff7b0c323 Mon Sep 17 00:00:00 2001 From: Balaram Sarkar Date: Thu, 18 Jan 2024 10:54:44 +0530 Subject: [PATCH] Update audio_utils.py librosa.filters.mel() function changes in newer version --- fairseq/data/audio/audio_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fairseq/data/audio/audio_utils.py b/fairseq/data/audio/audio_utils.py index 590a7493ae..81ccbfc33d 100644 --- a/fairseq/data/audio/audio_utils.py +++ b/fairseq/data/audio/audio_utils.py @@ -340,7 +340,7 @@ def get_mel_filters( import librosa except ImportError: raise ImportError("Please install librosa: pip install librosa") - basis = librosa.filters.mel(sample_rate, n_fft, n_mels, f_min, f_max) + basis = librosa.filters.mel(sr=sample_rate, n_fft=n_fft, n_mels=n_mels, fmin=f_min, fmax=f_max) return torch.from_numpy(basis).float()