import zhtts text = "2020年,这是一个开源的端到端中文语音合成系统" tts = zhtts.TTS() # use fastspeech2 by default tts.text2wav(text, "demo.wav")