天天看點

Python零基礎學習筆記(三十四)—— 語音

import win32com.client
import time
dehua = win32com.client.Dispatch("SAPI.SPVOICE")
dehua.Speak("Hello")

while 1:
    dehua.Speak("Hi")
    time.sleep(5)           

還有語音子產品,後面慢慢補