fix parameter naming

This commit is contained in:
Eren G 2018-07-19 17:17:10 +02:00
parent 367c7698f0
commit b98865a42f
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class AudioProcessor(object):
return n_fft, hop_length, win_length return n_fft, hop_length, win_length
def _amp_to_db(self, x): def _amp_to_db(self, x):
min_level = np.exp(hparams.min_level_db / 20 * np.log(10)) min_level = np.exp(self.min_level_db / 20 * np.log(10))
return 20 * np.log10(np.maximum(1e-5, x)) return 20 * np.log10(np.maximum(1e-5, x))
def _db_to_amp(self, x): def _db_to_amp(self, x):