Skip to main content

Let Your Computer Speak Whatever You Type!


With this cool trick you can create a small tool where you can type anything and convert into voice.
The process is very easy. All you have to do is:


Step:1) Open notepad and paste the following code:

"
Dim message, sapi
message=InputBox("hello from computertweaks.in, Do you want your computer to speak?","for more tricks visit computertweaks.in")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak message

"




Step:2)  Then click file, then click save as and choose any name and give extension as ".vbs ".For notepad the usual extension is ".txt" , so you have to change .txt extension to ".vbs".
For example  , " computertweaks.vbs"


Step:3) Thats it!
 Double click on the icon and box will pop up.




Type whatever you want listen and click ok. The computer will speak the sentence you type in the box.

Isn't it a cool trick?


Popular posts from this blog

How to write a bach file or a batch job?

If your are connected with world of programming, you might have heard this word " Batch File ". A batch file is used to execute a no of operations or a list of commands one after the other often requiring no user input. A no of operations are batched in a file to be executed sequentially when we run that file. In Microsoft Windows Operating system a batch file is a file saved with .bat extension while in other operating systems like Unix and Linux it can be written as a command file shell script. Batch files are often used to load programs, run multiple processes at a time, and perform common or repetitive tasks. For example, a batch job could be used to back up many files on a computer system, process log files, run a series of calculation commands, run multiple system diagnostic processes, or any number of other things that require multiple commands to be run. A big advantage of a batch job is that it can be started at any time and left alone until t...

Adding Password to Microsoft Word Document

Recovering Deleted Files, Pictures & Videos

  So many times we accidently delete some important files, pictures or videos. Sometimes we loose files because of unexpected system failure  ( ultimately causing system format). We can get our deleted files back using Recovery Softwares/Utilities.  Even though a file was deleted there is a good chance that contents of the file are still around.  When a file is deleted the contents of the file are not removed. Only a pointer to the file in the file system table is deleted.   It is very important to immediately stop writing to the storage device that previously contained your files/pictures so that the old file contents are not overwritten.  For example, don’t take any more pictures with your digital camera because new pictures will overwrite the deleted files. HOW TO RECOVER DELETED FILES???? Step1: You will need to use a utility to recover your lost files. I like to use a free ut...