Register to Get Access to all the Stuff!!!

Conducting any Symposium at your college & need to Promote it just mail us at : websharingportal@gmail.com

To Subscribe to Mobile Alerts Click Here

Now Receive Updates to Mobile by Free Subscription Send SMS ‘ON SharingPortal’ to 9870807070

58 views

Hot: VB Script to make your PC Talk

Make you Pc talk without any software.

Copy this and paste in notepad:

Dim msg, sapi
msg=InputBox("Enter your text","Talk it")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg

Then save it as .vbs extension
Run the file and enter whatever text you want.

For those you want it like a loop:
Copy this and paste in notepad:

 Dim msg, sapi
do
msg=InputBox("Enter your text","Talk it")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg
loop until msg=""

Then save it as .vbs extension
Run the file and enter whatever text you want.
What is does is after the enter text, it would talk then pop back up.
Close by clicking cancel or leaving message blank.

How to make it Read any text file you saved, once it is in the same directory.
Copy this and paste in notepad:

Const ForReading = 1
strText = InputBox("Please type in the name of the file you want to read the file,
the file has an extension .txt","Read text files from notepad")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objText = objFSO.OpenTextFile(strText + ".txt", ForReading)
strText = objText.ReadAll
objText.Close
Set Sapi = Wscript.CreateObject("SAPI.SpVoice")
Sapi.speak strText

Then save it as whatever you want.vbs extension
Open notepad write whatever you want there and save it with the default extension which is usually .txt
Now make sure the text file is in the same directory as the .vbs you save.
Run the .vbs and enter the name of the text file, caps does not matter

  • Share/Bookmark

Related posts:

  1. Hot : Windows Can Talk Now
  2. VB Script – Beware :P
  3. Fun with Windows :p
  4. Tricks on Notepad – Intresting
  5. Hot: Free ur RAM thru Notepad

Posted by shivanarayan on Nov 8th, 2009 and filed under Programming, Windows Xp. You can follow any responses to this entry through the RSS 2.0. You can leave a response by filling following comment form or trackback to this entry from your site

Leave a Reply

:bye: 
:good: 
:negative: 
:scratch: 
:wacko: 
:yahoo: 
:cool: 
:heart: 
:rose: 
:smile: 
:whistle: 
:yes: 
:cray: 
:mail: 
:sad: 
:wink: 
:unsure: 
 

UserOnline

DISCLAIMER
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator of this site (sharingportal.net) cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. All the information provided on this site are for educational purposes only. The site is no way responsible for any misuse of the information.