dc_tts icon indicating copy to clipboard operation
dc_tts copied to clipboard

Why is the 1st frame of mel spectrum set to 0?

Open youngsuenXMLY opened this issue 6 years ago • 1 comments

Hello, in train.py, line 52 self.S = tf.concat((tf.zeros_like(self.mels[:, :1, :]), self.mels[:, :-1, :]), 1)

the 1st frame values of mel spectrum are set to 0, could you please explain why to do this?

youngsuenXMLY avatar Feb 02 '19 07:02 youngsuenXMLY

For causal cut, the last frame was cut off. To keep the length, the 1st frame was padded.

hccho2 avatar Feb 05 '19 23:02 hccho2