Social Icons

Tuesday, September 10, 2013

Make your computer speak what you type


Using your PC's built in features and some VBScript you can create a simple program that will make your computer speak whatever you input to it.

To create the script, follow the steps given below:-

  • Open Notepad.
  • Copy and paste the exact code given below.

    Dim Message, Speak
    Message=InputBox("Enter text","Speak")
    Set Speak=CreateObject("sapi.spvoice")
    Speak.Speak Message

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