python-project/various other things/ttsdemo.py

7 lines
176 B
Python
Raw Normal View History

2019-09-03 14:54:42 -05:00
from gtts import gTTS
import os
text2electricboogaloo = input("Enter Text: ")
tts = gTTS(text=text2electricboogaloo, lang='en')
tts.save("good.mp3")
os.system("play good.mp3")