Skip to content

Commit

Permalink
Merge pull request keithito#106 from rafaelvalle/melspectrogram_offset
Browse files Browse the repository at this point in the history
adding offset to melspectorgram
  • Loading branch information
keithito authored Jan 19, 2018
2 parents 43762dc + 37f04cb commit 8edcd55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def inv_spectrogram_tensorflow(spectrogram):

def melspectrogram(y):
D = _stft(preemphasis(y))
S = _amp_to_db(_linear_to_mel(np.abs(D)))
S = _amp_to_db(_linear_to_mel(np.abs(D))) - hparams.ref_level_db
return _normalize(S)


Expand Down

0 comments on commit 8edcd55

Please sign in to comment.