Here you can find easy way to make your computer to speak whatever you type. To do this follow the below steps
Step 1 : Open a Text Document. To do this right click on desktop and select Text Document.
Step 2 : Now simply paste the below code in the Text Document
Dim userInput
userInput = InputBox("Write a message for me to say")
Set Sapi = Wscript.CreateObject("SAPI.SpVoice")
Sapi.speak userInput
it should look like this
Step 1 : Open a Text Document. To do this right click on desktop and select Text Document.
Step 2 : Now simply paste the below code in the Text Document
Dim userInput
userInput = InputBox("Write a message for me to say")
Set Sapi = Wscript.CreateObject("SAPI.SpVoice")
Sapi.speak userInput
it should look like this
Step 3 : Now save the file as Anyname.VBS. After you save the file go to your folder where you saved it. The file should look as shown below
Step 4 : Now open the above file and type the text you want and click ok. thats it the computer speaks the word or sentence you type.
Comments
Post a Comment