Text to speech in PC

Happy to come back with cool trick which you can perform with yourself. This trick is about making your pc to speak to you. It is possible with some Visual Basics codes. Let’s start to make it.

Step:1 Open notepad.

Step:2 Copy and paste the following visual basics code into the notepad.

Dim message, sapi
message=InputBox(“Type what i want to speak”)
Set sapi=CreateObject(“sapi.spvoice”)
sapi.Speak message 

Step:3 Save the file with an extension .vbs (name.vbs), vbs is the extension of visual basics.

Now open the saved file, it will open with the text box just type what your pc want to speak to you. I hope you like this. Love you 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s