1. Open a Notepad File.
2. Copy the code given Below and Paste in that Notepad File.
Code:
Dim msg, sapi msg=InputBox("Enter your text","Talk it") Set sapi=CreateObject("sapi.spvoice") sapi.Speak msg
[Example : Name it as "Talk.vbs"]
4. It will automatically create a VB File.
5. Open that VB File. It will Prompt you to Enter Text and then Press OK.
6. Now you will hear what you typed.
No comments:
Post a Comment