Solved by shivammehta007 in post #2 
              
              
                What you mentioned is the best practice as per my knowledge and referring to the Nvidia’s Tacotron2 source code Tacotron2/data_utils.py the same is done here.