mirror of
https://github.com/facebookresearch/fairseq.git
synced 2024-09-11 09:15:43 +03:00
Update audio_utils.py
librosa.filters.mel() function changes in newer version
This commit is contained in:
parent
fad2c4d1eb
commit
c0ea64daf3
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user