$obj=ObjCreate("SAPI.SpVoice") $obj.Voice=$obj.GetVoices().Item(0) $obj.AssignFormat(21);关键在此,设置无效 $spfs=objcreate("SAPI.SpFileStream") $spfs.Open(@scriptdir&"\mystream.wav",3,false) $obj.AudioOutputStream=$spfs $obj.Speak("测试输出wav文件",0) $spfs.Close();
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2024-11-15 01:04 , Processed in 0.071446 second(s), 23 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.