Following then, install the other dependencies that need for us to convert.
pip install pyttsx3
Once you have installed, create a new python file ex : index.py
The following code uses the conversion of text to speech.
import pyttsx3
speaker = pyttsx3.init()
speaker.say("Hello, welcome to the python programming")
speaker.runAndWait()
Execute the programby navigating to current working directory, and run
python3 index.py
0 Comments