From e7c3750415807f2d4a5b226e34bc2a8827d62c08 Mon Sep 17 00:00:00 2001 From: Anand Muglikar Date: Wed, 9 Oct 2024 17:14:08 +0530 Subject: [PATCH] Update audio.py File expts/Wav2Lip/audio.py", line 100, in _build_mel_basis return librosa.filters.mel(hp.sample_rate, hp.n_fft, n_mels=hp.num_mels, TypeError: mel() takes 0 positional arguments but 2 positional arguments (and 3 keyword-only arguments) were given --- audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio.py b/audio.py index 32b20c449..32ab5fabe 100644 --- a/audio.py +++ b/audio.py @@ -97,7 +97,7 @@ def _linear_to_mel(spectogram): def _build_mel_basis(): assert hp.fmax <= hp.sample_rate // 2 - return librosa.filters.mel(hp.sample_rate, hp.n_fft, n_mels=hp.num_mels, + return librosa.filters.mel(sr=hp.sample_rate, n_fft=hp.n_fft, n_mels=hp.num_mels, fmin=hp.fmin, fmax=hp.fmax) def _amp_to_db(x):