Text To Speech Program In Python
#belgin Android
#Before That pip install gtts
#Program to Convert Text To Speech
from gtts import gTTS
import os
f=open("test.txt") #The File Which It Will Read , Create A Text File Before That
text=f.read()
out=gTTS(text=text,lang='en',slow=False)
out.save("spc.mp3")
os.system("start spc.mp3")
#This Program Will Open The converted Audio To The Music Player
Comments
Post a Comment