From d2a7412d288d46732a4e1832bda6e1ec04162b20 Mon Sep 17 00:00:00 2001 From: James Devine Date: Wed, 3 May 2023 09:34:33 +0200 Subject: [PATCH] Update audio.py Applied fix from https://github.com/Rudrabha/Wav2Lip/issues/471 --- audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio.py b/audio.py index 32b20c4..fd1f274 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):