Hackosis is an Open Blog. You Can Participate.

  • 04
  • Aug

Genius Hackers points out a quick way to convert text to speech in Windows using a Visual Basic script.

Create a new file and name it tts.vbs. Enter and save the following:

Visual Basic [Show Plain Code]:
  1. Dim msg, sapi
  2. msg=InputBox("Enter your text","Talk it")
  3. Set sapi=CreateObject("sapi.spvoice")
  4. sapi.Speak msg

Run this you will be presented with a box like so:

Enter the text and it shall be read! This is reported to be working on XP/Vista only.

[via geniushackers.com]

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Related Posts


Tags: ,

Like this post? Subscibe to the RSS feed.


2 Comments

  1. my96soft Says:

    missing “g”

    line 4 sapi.Speak ms

    sapi.Speak msg

  2. Shane Says:

    Thanks my96soft. Changed in post.

Leave a Comment