Skip to content

Instantly share code, notes, and snippets.

@DaShoe
Created November 15, 2021 18:35
Show Gist options
  • Save DaShoe/3f064e6393efe8e1462a6f0aa6e02cf5 to your computer and use it in GitHub Desktop.
Save DaShoe/3f064e6393efe8e1462a6f0aa6e02cf5 to your computer and use it in GitHub Desktop.
Install modules, enter and sound will play
from gtts import gTTS
from playsound import playsound
from time import sleep
value = input("Please enter a input:\n")
print(value)
tts = gTTS('value')
tts.save("out.mp3")
sleep(1)
playsound("out.mp3")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment