1. 在控制面板下面有语音合成模块,这块儿进行一个简单的举例
举例1:
dehua = win32com.client.Dispatch("SAPI.SPVOICE") # dehua.Speak("Thomas is a good man") # 恶作剧 while 1: time.sleep(1) dehua.Speak("Thomas is a good man")