先创建个txt文件,粘贴上我写的代码,然后把txt后缀改为vbs即可
Dimireadfilepath="C:\Users\Administrator\Desktop\aaa.txt"setstm=createobject("ADODB.Stream") stm.Charset ="utf-8"stm.Openstm.LoadFromFilereadfilepathreadfile = stm.ReadTextfori=1to3CreateObject("SAPI.SpVoice").Speakreadfilenextstm.Close
文件路径为:C:\Users\Administrator\Desktop\aaa.txt
直接点击vbs文件即可播放