Update audio.py
Applied fix from https://github.com/Rudrabha/Wav2Lip/issues/471
This commit is contained in:
parent
72b6c334a5
commit
d2a7412d28
1 changed files with 1 additions and 1 deletions
2
audio.py
2
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue