Make your Computer Talk with VBScript

Have you ever wondered how can you make your computer speak whatever you input to it like in the movies? Would it not be fun? If only it was possible! Rejoice, because now it is possible. Well, if you wish to know how to do this, then you have come to the right place. With this trick, you can create a script in Windows which will make your computer speak whatever you input to it.

To create one such talk script, follow the steps given below:-

Steps:-
  1. Open Notepad.
  2. Copy and paste the exact code given below.
  3. Dim Message, Speak
    Message=InputBox("Enter text","Speak")
    Set Speak=CreateObject("sapi.spvoice")
    Speak.Speak Message

  4. Click on File Menu, Save As, select All Types in Save as Type option, and save the file as Speak.vbs or "*.vbs".
  5. Double click on the saved file, a window will open. Enter some text in the enter text column and click OK.

    Now your Computer will speak / talk what you typed in Step 4. Try it yourself.

    Windows Compatibility: This VBS file can be executed on all versions of Windows including Windows XPWindows VistaWindows 7Windows 8Windows 8.1 and Windows 10.

Comments

Popular posts from this blog

How to create math quiz application using visual studio 2010