Posts Tagged sapi

SAPI vbscript example

This VBScript example provides a simple text-to-speech demonstration by using SAPI and VBScript.

Very interesting :)

Download this text file and rename it to SAPI_Speak.vbs.

Double click and run it. Your computer will speak out what you have entered.
* Remember to turn on your speaker.

File: SAPI_Speak.txt

'* Windows SAPI VBScript Example
'* Author: Victor Tong
'* Website:
'* Last Update: 22 June, 2009

Dim message, sapi
message=InputBox("Enter a string that you want SAPI to speak")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak message
VN:F [1.9.18_1163]
Rating: 5.0/5 (2 votes cast)
VN:F [1.9.18_1163]
Rating: +1 (from 1 vote)
Total views: 26,400 views

, ,