Skip to content

Commit

Permalink
Update audio.py
Browse files Browse the repository at this point in the history
  • Loading branch information
justinjohn0306 authored Sep 7, 2023
1 parent ba27242 commit ef93024
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 @@ -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):
Expand Down

0 comments on commit ef93024

Please sign in to comment.