Spaces:
Running
Running
Update src/utils/audio.py
Browse files- src/utils/audio.py +1 -1
src/utils/audio.py
CHANGED
@@ -97,7 +97,7 @@ def _linear_to_mel(spectogram):
|
|
97 |
|
98 |
def _build_mel_basis():
|
99 |
assert hp.fmax <= hp.sample_rate // 2
|
100 |
-
return librosa.filters.mel(hp.sample_rate, hp.n_fft, n_mels=hp.num_mels,
|
101 |
fmin=hp.fmin, fmax=hp.fmax)
|
102 |
|
103 |
def _amp_to_db(x):
|
|
|
97 |
|
98 |
def _build_mel_basis():
|
99 |
assert hp.fmax <= hp.sample_rate // 2
|
100 |
+
return librosa.filters.mel(sr=hp.sample_rate, n_fft=hp.n_fft, n_mels=hp.num_mels,
|
101 |
fmin=hp.fmin, fmax=hp.fmax)
|
102 |
|
103 |
def _amp_to_db(x):
|