How to use the Microsoft Speech API in VBScript

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 

Please Share us:
Please rate this snippet

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

Leave a Reply