Kyubyong / dc_tts

A TensorFlow Implementation of DC-TTS: yet another text-to-speech model
Apache License 2.0
1.16k stars 370 forks source link

Question about normalization code in utils.py #105

Open predawnang opened 1 year ago

predawnang commented 1 year ago

Hi, May I ask a question.

Is there a technical name for this operation?

    # normalize
    mel = np.clip((mel - hp.ref_db + hp.max_db) / hp.max_db, 1e-8, 1)
    mag = np.clip((mag - hp.ref_db + hp.max_db) / hp.max_db, 1e-8, 1)

Why do so could make the value to range [0, 1]?

Thank you so much