import pyttsx3import pyttsx3.drivers.sapi5import pyttsx3.driversimport pythoncom
pythoncom.CoInitialize() engine = pyttsx3.init() engine.say(strInfo) engine.runAndWait()