Text to Speech

Python Text to Speech

From command prompt enter the following code

pip install pyttsx3

Code

import pyttsx3

engine = pyttsx3.init()

engine.say('Type speech here')
engine.runAndWait()