Monday, March 14, 2011

trick to make your PC Talk

STEPS:-
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
3. Save the file with any name but with .vbs extension.
[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