from TTS.config import load_config from TTS.utils.manage import ModelManager from TTS.utils.synthesizer import Synthesizer config="config.json" model="best_model.pth.tar" synthesizer = Synthesizer( model, config ) text="È anche un noto pittore e paesaggista greco e conosce trecento opere da collezione." wavs = synthesizer.tts(text) synthesizer.save_wav(wavs,'italian.wav')