python语音提示

#coding:utf8
import win32com.client

speaker = win32com.client.Dispatch("SAPI.SpVoice")
while True:
    message=input("请输入内容:")
    speaker.Speak(message)

 

posted @ 2017-11-27 13:12  天行健风行云  阅读(420)  评论(0编辑  收藏  举报