Sunday 13 April 2014

How to use J.A.R.V.I.S to access search engine sites


It took a lot of time for me to figure out a way to let people access the search engines as they like using my J.A.R.V.I.S . AT THE END I came up with an IDEA

If you need to access the search engine giant Google do as follows

<speechMacros>
<command>
<listenFor>search google [...]</listenFor>
<speak>as you wish sir</speak>
<run command="chrome.exe" params="http://www.google.com/search?q={[...]} ">
</command>
</speechMacros>

Note in addition of the [...]

THIS IS THE CATCH-KEY (or such) THAT THE WINDOWS SPEECH RECOGNITION MACROS SYSTEM USES TO PASS ALONG A VERBIAL VARIABLE THROUGH THEIR SYSTEM  ( ★ am I starting to be nerdish? Please stay with me guys★)

SO FOR INSTANCE IF YOU WERE TO SAY "search google hacker4jarvis Basil", THE ABOVE COMMENT WOULD LOAD A BROWSER AND AUTOMATICALLY GO TO GOOGLE AND WOULD SHOW THE RESULTS.
  
COOL RIGHT?



But it happen to be that the person who is scripting the macro hates GOOGLE

I have a present for him 
Ta daaaaa

I will tell you how to access yahoo with J.A.R.V.I.S
DO AS DIRECTED

<speechMacros>
<command>
<listenFor>search yahoo [...]</listenFor>
<speak>as you wish sir</speak>
<run command="chrome.exe" params ="http : / / search.yahoo.com/search?p ={[...]}">
</command>
</speechMacros>
Creative Commons Licence
Real life J.A.R.V.I.S by BASIL AZEEZ is licensed under a Creative Commons Attribution 4.0 International License.
Based on a work at www.hacker4jarvis.blogspot.com.
Permissions beyond the scope of this license may be available at permissionstopost

Thursday 5 July 2012

                             How to make J.A.R.V.I.S AI ASSISTANT in real time

(Just.An.Remote.Virtual.Intelligent.System) 

 







Hello everyone , here is a tutorial for how to make your PC speak like Jarvis as in Iron Man movies . The Post is quite long , so have patience. You just need is a basic of scripting with XML , and that's easy too , what you need to do is just make enter some commands to some of the windows files , its as simple as burning a candle ;

Really telling , when i tried it for my laptop , i thought it would be hard enough for me to make my pc speak like that , and believe me , even when I looked up on the internet , i found the way too hard , but , when i got what to do , it become a whole more lot of easy to scrap the things out of it .

So now , what you have got is that , your computer can respond back to yo for whatever you say , now lets get to ,  what we should have to do all that I have told you :

Requirements :

  1. Firstly , you need an operating system , Windows 7 and Windows 8 , both works fine on 32-bit as well as 64-bit versions. you should have a lots of memory , at least 1 GB memory is required , but i will suggest for a 2 GB ,processor (at least a dual core .)
  2. Secondly , you would need Windows Speech Recognition Software , that's inbuilt in windows 7 and windows 8 PC. You just need to enable it.
  3. Now you need is an important software , which windows is providing on their website too ; Windows Speech Recognition Macros , which you can download by clicking HERE .
  4. A microphone , that's inbuilt in laptops , but i will suggest using a separate and dedicated microphone as it will be whole lot more easier.
  5. Lastly we need is Speakers , as we all know .
Procedure :



  1. Download Windows Speech Recognition Macros Software (WSRM) first . You can download it at windows website , or otherwise you may Google it to get more download links.
  2. Enable Windows Speech Recognition , which is inbuilt Enable Windows Speech Recognition in your Control Panel (Start Menu/Control Panel/Ease Of Access/Speech Recognition/Start Speech Recognition). While you're at it, it's a good idea to take the speech tutorial to familiarize yourself with some common voice commands. You should also go ahead and visit the section that says "Train your computer to better understand you." Neither is required, but going through the steps provided by these tutorials will help make the process of bossing your computer around a lot more efficient. An additional bonus you'll get after training your computer to better recognize your voice... less problems with it responding to ambient noises and other voices in the room. So go ahead and take the extra 10 minutes to learn these processes.
Now when you have trained your PC , its time to do some programming . Open the WSRM by double clicking it , it always gets minimized to the task bar. To know how to use it visit HERE . At starting it might look like this .
  1. Go to advanced  and do the programming as given below:
Before doing that , you must know about the used strings , ie. XML strings
<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> - By now I think you can figure out why this is here.
Since I'm going to name my computer Jarvis, I'm going to tell my computer to listen for it's name by changing the <listenFor> tags to say the following:
<listenFor>Jarvis</listenFor>
The entire macro looks like this now:
<speechMacros>
<command>
<listenFor>Jarvis</listenFor>
</command>
</speechMacros>

 so we're going to add the <speak></speak> tags which allow for the computer to speak whatever text we insert between the tags back to us.

Now , what you write in advanced is :
<speechMacros>
<command>
<listenFor>Wake up</listenFor>
<speak>Database Check , System Online , Hello</speak>
</command>
</speechMacros>

Go forward and save it , Sign the macros as well . That's it . Now when you say hello to it , it replies you back .

For signing a SPEECH MACROS FILE we first first look at the tray in the taskbar, right click on speech macros' logo (like blue balloon with two gears) then you will bbe able to see a setting namely SECURITY, click on it and select 'create a signing certificate' option, then a task will open, click next and go forward then you will see a task saying that the signing certificate has been created.
You must do this each time you make a Speech Macros.

Some examples are :
Restart Computer: (You say "Nuke It" and the computer acknowledges and restarts your system.)
<speechMacros>
<command>
<listenFor>Nuke it</listenFor>
<speak>Restarting Windows</speak>
<run command="C:\Windows\System32\shutdown.exe" params="-r -t 00"/>
</command>
</speechMacros>

Shutdown Computer: (You say "Shut It Down" and the computer acknowledges and turns the system off)
<speechMacros>
<command>
<listenFor>Shut it down</listenFor>
<speak>End Of Line</speak>
<run command="C:\Windows\System32\shutdown.exe" params="-s -t 00"/>
</command>
</speechMacros>

WANT moRe


If you need ANY HELP on anything just don't hesitate, just click on the comments tag and ask in the comments box below.

(Lot more coming, so stay tuned)

CURRENTLY DEVELOPING A SOFTWARE WHICH IS NEARLY COMPLETE.

Basil Azeez(TONY STARK)

Creative Commons Licence
Real life J.A.R.V.I.S by BASIL AZEEZ is licensed under a Creative Commons Attribution 4.0 International License.
Based on a work at www.hacker4jarvis.blogspot.com.
Permissions beyond the scope of this license may be available at permissionstopost