Imported from https://github.com/YuvalBecker/MelNet-Tensorflow