Monday, May 19, 2014

Turn Your Laptop/Desktop into J.A.R.V.I.S from Tony Starks Iron Man

In  30 min.


You have probably heard about the Iron Man Personal Assistant, aka J.A.R.V.I.S, you would have wondered if you could convert you laptop/desktop into a full featured robotic assistant,you could do it.And it is pretty easy. Although you might not be able to launch missiles and deploy security armor, you can do easy tasks like asking for weather, shutting PC down, pimp its interface etc., etc.
Let us move on then!


Things You'll need


The transformation process of turning your computer into JARVIS from Iron Man is simplified into three steps:
************************************************


Step 1: Set Up Windows Speech Recognition.
----------------------------------

Make your computer respond to your voice. Its a small tutorial on how to set up Windows Speech Recognition.
Windows Speech Recognition (WSR) program, which comes pre-installed with the Windows, way to access it is via start bar. Now choose the required Fields,and after it is done, visit the "Train your computer to better understand you" section, it is not necessary for people with clear voice/accent, but I strongly advise you to spend at least 5 Minutes on this so your computer can understand you better.


Step 2: Installing Windows Speech Recognition Macros.----------------------------------

Now if you Have set-up-ed the Windows Speech Recognition Program, you would have been trying out all sorts of cool commands, But now to spice it up, We'll use the Windows Speech Macros.I assume you would have already downloaded it from the link above and installed it.After Installing it i would advise you to put its shortcuts in two places, One in the desktop and other in the start-up folder, so it would start the second your computer boots up.So a little walk through to this software, This is a super-cool, little software that teaches your computer to talk to you interactively.Here is how to set up the commands :Double Click The Macros Icon, and when the window pops up asking "What should the macro do?" click "Advanced." For those of you familiar with creating websites, this should be a welcome site. WSRMacros uses XML for commands... which makes creating custom commands relatively simple. For those of you who aren't aware of XML, it's still easy.Here Is A Little Sypnosis at what are you looking at.


-
  • <speechMacros> -This is the starting Tag, it just tells the computer that this XML file uses the Speech Macros to execute.



  • <command> - This is the command to be executed. Each command is basically one action... in most cases you will only need one, but for some automations you'll want to include more than one. You'll see an example of this later.


  • <listenFor></listenFor> - This tells the computer what word or phrase to listen for in order to do an action. Notice that there is a closing tag (</listenFor>), this tells the XML that this spot in the code is where to stop doing whatever function... in this case stop listening for a word or phrase once the computer hears it.

  • </command> - The closing tag for the "Command" tag... again, in XML every tag will have an opening/closing tag and what happens between the two is how it knows what to execute. In this case it knows that the command is finished once the word/phrase has been detected.

  • <speechMacros> - This is the closing tag of the first tag!

Here is a simple macros:
*---------------------*

<?xml version="1.0" encoding="UTF-16"? >
<speechMacros>
<command>
<listenFor> Wake Up Jarvis </listenFor>
<speak>System Online,Database Check, Good Morning Sir ! </speak>
</command>
<speechMacros>
*---------------------*

<

So Whenever I Say "Wake Up Jarvis
My Computer will reply me with "System Online,Database Check, Good Morning Sir !

You can change it to whatever you like !





Step 3: Install Rainmeter:
***********************************************

Rainmeter will run on Windows XP (SP3 service pack required), Vista, Windows 7 or Windows 8./h4>



After installing Rainmeter, install theme by double clicking on rainmeter theme.
Your JARVIS is ready to use........
Have fun & fun...........
Add more macros to make easy & interesting... Here are some macros:

A Speech Macro For Getting The Weather :

*--------------------------*
<?xml version="1.0" encoding="UTF-16"?>
<speechMacros>
<command>
<listenFor>Pull up the weather in [CityName]</listenFor>
<run command="http://www.weather.com/weather/local/{[CityName.zipCode]}"/>
</command>
<command>
<listenFor>Is it cold in [CityName]?</listenFor>
<speak>Let me check... just a moment.</speak>
<script language="JScript">
<![CDATA[ <xml_doc.async=false; <xml_doc.load("http://www.rssweather.com/zipcode/{[zipCode]}/rss.php"); <var titles = xml_doc.getElementsByTagName("title"); <var descriptions = xml_doc.getElementsByTagName("description"); <Application.Speak(titles.item(2).text + " in {[*CityName]}"); <Application.Speak(descriptions.item(2).text);]]>
</script>
</command>
<listenForList name="CityName" propname="zipCode">
<item propval="65201">Gurgaon</item>
<item propval="37201">Guwahati</item>
</listenForList>
</speechMacros>
*---------------------------------*

You can edit or add more place "item proval" tag.......!
I have a script for you, copy & paste these in notepad & save as welcome.vbs in your start up folder.

-------------------------------------------------------------------------------------------------------------------------

Dim speaks, speech
speaks="Welcome to your Computer, Sir"
Set speech=CreateObject("sapi.spvoice")
speech.Speak speaks

No comments:

Post a Comment