Make your XP to speak

Create a text file and put the following information in it.(Add the bolded text)

Dim msg, sapi
msg=InputBox("Enter your text","Talk it")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg


Next step is to save the file with(*.vbs) extension. This will create VBscript file.
Now you will be prompted for text, input the text and Click OK

0 comments:

Search This Blog

Powered by Blogger.