Skip to content

Instantly share code, notes, and snippets.

@Eeman1113
Created January 23, 2022 08:53
Show Gist options
  • Save Eeman1113/7373e3a3f223442b2d59d33cd4b03b96 to your computer and use it in GitHub Desktop.
Save Eeman1113/7373e3a3f223442b2d59d33cd4b03b96 to your computer and use it in GitHub Desktop.
def speak(r):
language='en'
text1=str(r)
myobj = gTTS(text=text1, lang=language, slow=False)
myobj.save("DEW/voice.mp3")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment