Update audio.py

Applied fix from https://github.com/Rudrabha/Wav2Lip/issues/471
This commit is contained in:
James Devine 2023-05-03 09:34:33 +02:00 committed by GitHub
parent 72b6c334a5
commit d2a7412d28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):