Your PC can talk with simple Notepad

Hi friends ,




Have you ever used talk it software that can read the text written by you.Now you don’t need to use any software  only 3 lines of VB code can make your PC talk.You will just need to copy and paste the code in notepad.

Now let me share the method of how you can make your PC talk by only using notepad.


Copy and paste the below code in notepad.( Without inverted commas )

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

Save the file with a (*.vbs) extension then you will have a VBScript file just double click on that file and it will prompt you for text.Enter the text you wish to hear from your computer and press OK.

You will hear the text your wrote in the dialog box.This is really cool i loved it and hope you will love it too.

thanks .

0 comments:

Post a Comment