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
To use the Microsoft Speech API in VBScript you can use the following snippet.
dim sTextToSpeech sTextToSpeech = "HELLO WORLD!" set ObjVoice = CreateObject("SAPI.SpVoice") ObjVoice.Speak sTextToSpeech