gTTS program very simple apni programming
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 26 18:47:43 2021
@author: krish bhagat
"""
from gtts import gTTS
import os
mytext = 'Welcome to apni programming'
language = 'en'
myobj = gTTS(text=mytext, lang=language, slow=False)
myobj.save("welcome.mp3")
os.system("welcome.mp3")
Comments
Post a Comment