- 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
-
Dim msg, sapi
-
msg=InputBox("Enter your text","Talk it")
-
Set sapi=CreateObject("sapi.spvoice")
-
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]
Related Posts
Tags: TTS, Windows



August 4th, 2008 at 10:57 am
missing “g”
line 4 sapi.Speak ms
↓
sapi.Speak msg
August 4th, 2008 at 1:02 pm
Thanks my96soft. Changed in post.