To use the Microsoft Speech API in VBScript you can use the following snippet.

Sample VBScript

dim sTextToSpeech 
sTextToSpeech = "HELLO WORLD!"
set ObjVoice = CreateObject("SAPI.SpVoice") 
ObjVoice.Speak sTextToSpeech 

One thought on “How to use the Microsoft Speech API in VBScript”

Leave a Reply