📅  最后修改于: 2022-03-11 14:47:06.951000             🧑  作者: Mango
from gtts import gTTS
from playsound import playsound
mytext="Hello Geek! How are you doing??"
language='en'
myobj=gTTS(text=mytext,lang=language,slow=True)
myobj.save("welcome1.mp3")
playsound("welcome1.mp3")