Lunes, Mayo 6

How to make your computer speak whatever you type in

In this computer tutorials you will learn how can you make a simple program that your computer speak whatever you input. To make this simple program all you need to do is follow some simple instructions below to create your own talking computer programs.


First step is you need to open a new notepad by right clicking your desktop and paste the code below.


The CODE:

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


Next is you need to save the file, in order to save it click on File Menu then Save as select All Types in Save as Type option, put .vbs for the file extension. the vbs file extension work on all windows type computer.

Example:  Computer.vbs





Try it on your computer by typing some word.

1 komento: