soundobject = gTTS(text=text,lang="en") soundobject.save("sound.mp3") os.system("sound.mp3")
This is the code I use to