Have you seen Marvel’s most famous movie The Iron Man. If yes you might be knowing about the Jarvis System. Yes I am talking about the voice assistant based on Artificial Intelligence which helped Tony Start to accomplish his daily chores and it too helped him fight his enemy and conquer the ground.

It is quite difficult to program a full fledged JARVIS Like AI system but Mark Zuckerberg was able to create one for him and his family and this video will tell you how it worked for him.

So keeping this apart, Do you want the same. An AI Assistant for your personal use? If your answer is yes..!! Then here is how you can make a JARVIS System and make your PC / laptop talk like JARVIS.

I will help you to fulfill your IRON MAN fantasy. 🙂

What is Jarvis?

JARVIS is an AI based voice assistant which will become a must need in the near future for a smart home or just to make your working environment smart and to ease out your daily chores.

 

So lets get started…

Lemme give you an example what this voice assistant can do..

Example 1

You : Who Are You?

JARVIS: I'm JARVIS, ready for your command, Sir

Example 2

You: Good Morning JARVIS

JARVIS: Good Morning Sir, How are you today

So lets get started with the codes..:)

Prerequisites:

  • Microphone or Internal Microphone ( if you have a laptop then no need to get a external one.)
  • OS : Windows 7 (Or Higher)
  • Windows Speech Macros, Download

Procedure:

Step 1: Install the Macros make them start work.

Step 2: Open Notepad and paste this code in it>

<speechMacros>
<commmand>
<listenFor>Jarvis</listenFor>
<speak>Hello Mr. Stark</speak>
</command>
</speechMacros>

Paste this code in the notepad and save the file with the name “name.WSRMac”

Step 3: Once the file is saved. Goto the file and Open it.

Step 4: Click on “Import Signing Certificate” and it will automatically save a digital signature of the file.

Here are few more commands you would like to add in your system and to develop more.
Just follow the same procedure for these commands as you did for the above command.

Example:

<speechMacros>
<command>
<listenFor>anyEnglishName</listenFor>
<speak>Hello theNameYouWantInReply</speak>
</command>
</speechMacros>
<speechMacros>
<command>
<listenFor>Good Morning yourPCName</listenFor>
<speak>Good Morning Sir. how are you today</speak>
</command>
</speechMacros>

Command to Shut Down Computer

<speechMacros>
<command>
<listenFor>Nuke it</listenFor>
<speak>Restarting Windows</speak>
<run command="C:\Windows\System32\shutdown.exe"/>
</command>
</speechMacros>

To make it more intresting and realastic you need a bit knwoledge of VB.NET
here is one example

<speechMacros>
<command>
<listenFor>Time</listenFor>
<listenFor>Give me the Time</listenFor>
<listenFor>What is the time</listenFor>
<listenFor>Tell me the time</listenFor>
<listenFor>What time is it</listenFor>
<script language="vbscript">
<![CDATA[
dim currentTime
currentTime = FormatDateTime(Time(), 1)
Application.Speak Time
Application.SetTextFeedback Time
]]>
</script>
</command>

Commands to work on MS Excel

<command priority="100">
<listenFor>insert row above</listenFor>
<sendKeys>{ALT}jla</sendKeys>
</command>
<command priority="100">
<listenFor>insert row below</listenFor>
<sendKeys>{ALT}jle</sendKeys>
</command>
<command priority="100">
<listenFor>insert column before</listenFor>
<sendKeys>{ALT}jll</sendKeys>
</command>
<command priority="100">
<listenFor>insert column after</listenFor>
<sendKeys>{ALT}jlr</sendKeys>
</command>
<command priority="100">
<listenFor>merge cells</listenFor>
<sendKeys>{ALT}jlm</sendKeys>
</command>
<command priority="100">
<listenFor>split table</listenFor>
<sendKeys>{ALT}jlq</sendKeys>
</command>
<command priority="100">
<listenFor>delte row</listenFor>
<listenFor>delte rows</listenFor>
<sendKeys>{ALT}jdr</sendKeys>
</command>
<command priority="100">
<listenFor>delete column</listenFor>
<listenFor>delete columns</listenFor>
<sendKeys>{ALT}jdc</sendKeys>
</command>
<command priority="100">
<listenFor>?show table properties</listenFor>
<sendKeys>{ALT}jdo</sendKeys>
</command>
<command priority="100">
<listenFor>?show ?hide table gridlines</listenFor>
<sendKeys>{ALT}jltg</sendKeys>
</command>

Now all you have to do is open speech recoginition and say your command. JARVIS will do the rest. 🙂

Thanks for reading. We hope it helped you. !!

Posted by Mukul Chugh

Hi Folks, I am Mukul Chugh, web developer and writer based in India. I am an avid reader and an enthusiastic tech addict blogger.

5 Comments

  1. Heyy, it’s really working that’s so gud man…
    I like it…

    Reply

    1. Thankew bro you will see more amazing posts..
      Stay tuned.. 🙂

      Reply

      1. Isto só é novo para quem anda diaosaídt.Baricsmente a direcção/sócios tornaram os orçamentos irrelevantes.Quem acabou de descobrir isto, faça um exercício:Vejam os estatutos e descubram o que é preciso fazer para alterá-los.

        Reply

    2. Jay, the original Song is definitely WESTERN, written back in '48. I'm talking about the Outlaws cover of it. Heck, even the American Master Johnny Cash covered it. But the 60's Frankie Lane version is nice, also.But have you listened to what Modern Country is playing nowadays? Th&r3e#e9;s a Solid Southern Rock Undertone going on in a lot of the music. I still stand by my statement. Not a Good Poll at all.

      Reply

  2. Thats GREAT! Congrats to you & your fal..yim. Plus, How exciting to be able to start a new chapter {new town} in your life! FUN! 2010 is going to be a great year… Enjoy! xoxo, Alexandra

    Reply

Leave a reply

Your email address will not be published. Required fields are marked *

CommentLuv badge