In this video we have shown you an easy method/program with the help of which you can convert any text data to speech in Python by importing a module named pyttsx3.
Module name: pyttsx3
Installation Command: pip install pyttsx3
Wanna try it for yourself?
Here's the source code.
Source Code:
import pyttsx3
speaker = pyttsx3.init()
speaker.say("Welcome to our channel Coders Arcade")
speaker.say(" We provide free tutorials on Python, Java, HTML, CSS, and much more")
speaker.say("We started our channel on 3rd January, 2021 ")
speaker.say(" If you like our videos, please subscribe to our channel")
speaker.say(" Thank you and happy learning !!!")
speaker.runAndWait()
#texttospeechinpython #texttoaudioinpython #texttospeechusingpython
#texttoaudiousingpython #pyttsx3