Created
November 15, 2021 18:35
-
-
Save DaShoe/3f064e6393efe8e1462a6f0aa6e02cf5 to your computer and use it in GitHub Desktop.
Install modules, enter and sound will play
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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