文字转语音
import pyttsx3
import pyttsx3.drivers.sapi5
import pyttsx3.drivers
import pythoncom
pythoncom.CoInitialize() engine = pyttsx3.init() engine.say(strInfo) engine.runAndWait()
import pyttsx3
import pyttsx3.drivers.sapi5
import pyttsx3.drivers
import pythoncom
pythoncom.CoInitialize() engine = pyttsx3.init() engine.say(strInfo) engine.runAndWait()