campusflava

Saturday, June 1, 2013

How to Make Your Computer Speak Whatever You Type

Create your own text to speech converter software to make your computer speak whatever you type.

N.B Visit www.campusflava.com for more updates

Steps

  1. 1
    Open the Notepad.

  2. 2
    Copy the code given below and paste it to notepad

    • Dim message, sapi
      message=InputBox("What do you want me to say?","Speak to Me")
      Set sapi=CreateObject("sapi.spvoice")
      sapi.Speak message
  3. 3
    Save the file with any name with an extension .vbs

  4. 4
    Run the file, type anything you want in the textbox and press OK.

  5. 5
    Enjoy !


 Tips
  • Sentence marked in the double quotes in the code/script can be edited according to the user's choice.
  • vbs stands for Visual Basic Scripting.

No comments: