- @echo off
- title 语音朗读器,输入exit退出
- :start
- cls
- echo set s=createobject("sapi.spvoice") >temp.vbs
- set word=
- echo 请输入你想说的话,输入exit退出
- set /p word=
- if /i "%word%"=="exit" goto exit
- echo s.speak "%word%" >>temp.vbs
- temp.vbs
- goto start
- :exit
- echo s.speak "感谢您使用语音朗读器,欢迎提出宝贵意见!" >>temp.vbs
- temp.vbs
- del temp.vbs
复制代码 哪条语句就让他发声了? |