Skip to content

Commit

Permalink
Fix mel function parameters errors
Browse files Browse the repository at this point in the history
  • Loading branch information
abdoulfataoh authored Jun 29, 2023
1 parent a5c2462 commit 9411625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _linear_to_mel(spectrogram):
def _build_mel_basis():
if hparams.fmax is not None:
assert hparams.fmax <= hparams.sample_rate // 2
return librosa.filters.mel(hparams.sample_rate, hparams.fft_size,
return librosa.filters.mel(sr=hparams.sample_rate, n_fft=hparams.fft_size,
fmin=hparams.fmin, fmax=hparams.fmax,
n_mels=hparams.num_mels)

Expand Down

0 comments on commit 9411625

Please sign in to comment.