Wednesday, November 27, 2013

Ironman's Jarvis - Turn your computer into jarvis

Tony Stark
Tony Stark

Do you know Tony Stark? Of course you would if you don't live in caves. Well, I'm not talking about Tony Stark but his Computer (i.e. Jarvis). Isn't that cool hmm? Alright I will tell you how to make your computer talk and work like Jarvis. Yeah it won't be cool like Jarvis; but still it would be able to talk to you and do whatever you will tell it to do? 
          Okay wait, you know what? You can actually make it work like Jarvis but for that you gotta put your brain deep into it. So I'm gonna tell you some basics and few tricks about it. And lets see what you can make out of it. So just hang on here for a while...

Here is the list of Software and hardware you will need -

Hardware:
  1. A computer running windows.
  2.  A microphone (good quality microphone is needed you can also look for the Bluetooth enabled headset for better experience).

Software: 
  1.  Windows Speech  Recognition (It's inbuilt in windows so you don't need to bother about it)
  2. Windows Speech  Recognition Macros (search it on Google or you can download it from here - www.microsoft.com/en-in/download/details.aspx?id=13045)
  3. Nircmd (search it on Google or you can download it from here - www.nirsoft.net/utils/nircmd.html?)
We are done with the requirements now its' time to build Jarvis; So here we go -

Step 1:
Train your windows speech recognition to better understand you. It's very easy just open the Speech recognition and it will prompt you to train it.

Step 2: 
Now install Windows Speech  Recognition Macros and put the nircmd in Windows directory i.e. go to "C:\Windows" and paste it here.

Step 3: Open Windows Speech  Recognition Macros and from GUI Menu select run a program.

Step 4: Now enter the text that you want to speak in the first dialogue.

Step 5: Write "nircmd.exe" in the second dialogue or you can use the browse tab to specify the location of nircmd.

Step 6:  Enter the command you want to run via nircmd in the third dialogue.
e.g. In the first dialogue write "Jarvis, you are up" (ignore the double quotes), in the second dialogue write "nircmd.exe" (ignore the double quotes), and in the third dialogue write (speak text "Welcome Sir!") ignore the brackets and everything in the bracket should go as it is . Make sure you have speakers in working condition.
Here is the screenshot:


Step 7: Now save it and if it prompt you to create digital signature; do it and then save it. Now open the Windows Speech  Recognition and put it in listening mode and speak "Jarvis, you are up" and your computer will respond you by saying "Welcome sir".
Wow! congratulations you have build your Jarvis. isn't it a great experience??
Check out the nircmd help utility  (came with your download), you can do more cool stuff like putting computer online by just saying "Jarvis, go online" or you can control your system sound, screen brightness, play music and much more, the list is endless. 
Actually you can control your browser too and even more than that. Here is a tip for you, use the script service of nircmd (look help document) for better tricks. Leave the comment for any further query. Good Luck.