from TTS.utils.synthesizer import Synthesizer #provide model params # model_path = "/content/drive/MyDrive/TTS/recipes/ljspeech/tacotron2-DDC/tobi-ddc-December-07-2022_02+50AM-3191c5f/best_model.pth" # config_path = "/content/drive/MyDrive/TTS/recipes/ljspeech/tacotron2-DDC/tobi-ddc-December-07-2022_02+50AM-3191c5f/config.json" #Huu # model_path = "/content/drive/MyDrive/SLT-TTS/best_model.pth" # config_path = "/content/drive/MyDrive/SLT-TTS/config.json" #Huu2 # model_path = "/content/drive/MyDrive/SLT-TTS/model-1701/best_model.pth" # config_path = "/content/drive/MyDrive/SLT-TTS/config.json" #New phoneme model_path = "./tacotron/best_model.pth" config_path = "./tacotron/config.json" # vocoder_path = "/content/drive/MyDrive/Nancy/nancy_univnet/best_model.pth.tar" # vocoder_config_path = "/content/drive/MyDrive/Nancy/nancy_univnet/config.json" # vocoder_path = "/content/drive/MyDrive/TTS/recipes/ljspeech/tacotron2-DDC/univnet/tobi-univnet-December-29-2022_09+54AM-3191c5f/best_model.pth" vocoder_config_path = "./vocoder/config.json" vocoder_path = "./vocoder/best_model.pth" synthesizer = Synthesizer( model_path, config_path, "", "", vocoder_path, vocoder_config_path, "", "", False ) # synthesizer = Synthesizer( # model_path, # config_path, # "", # "", # "", # "", # "", # "", # True # )