adding offset to melspectorgram

pull/2/head
Rafael Valle 2018-01-16 10:25:34 -08:00
parent 43762dc456
commit 37f04cb0f1
1 changed files with 1 additions and 1 deletions

View File

@ -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)