gtts text to speech code example
Example 1: gtts
>>> from gtts import gTTS
>>> tts = gTTS('hello')
>>> tts.save('hello.mp3')
Example 2: how to make gtts text to speech converter
from gtts import gTTS
import os
text = " python is the most easiest programing language "
language = "en-us"
roh = gTTS( text = text , lang = language , slow = False)
roh.save("play.mp3")
os.system(" start play.mp3")