To make your computer speak what we type on the screen. You just have to use some piece of code and run that file. This trick will work only in Windows. Follow the steps below.
Steps to Make your Computer Speak:-
- Open the Notepad or Notepad+ and type the code given below.
Dim msg,sapi msg=InputBox("Enter your Message","Talk it") Set sapi=CreateObject("sapi.spvoice") sapi.Speak msg
- Save the File with .vbs Extension.
- Now open the file and enter the message.
What is .vbs extension ?
VBS file stands for Virtual Basic Script file. It is also called as VBscript File. These files are executable files that will run only on Windows.