►►►►►►► THANKS FOR WATCHING ◄◄◄◄◄◄◄◄
AND DON'T FORGET TO LIKE, COMMENT, AND SUBSCRIBE.
Video: Convert Text to Speech in Python Using Google Text-to-Speech (gTTS).
Code:
# import the required library
# Library for text to speech conversion
from gtts import gTTS
# os is imported to play the converted audio
import os
# The text that you want to convert to audio
myText = "Welcome to our youtube channel"
# Language in which you want to convert
myLangauge = "en"
# slow=False makes the converted audio at a high speed
tts = gTTS(text = myText, lang = myLangauge, slow = False)
# Saving the converted audio in a mp3 file
tts.save("welcome.mp3")
# Playing the converted file
os.system("welcome.mp3")
![](https://s2.save4k.ru/pic/cQIxUCLTP_Q/maxresdefault.jpg)