Friday, June 21, 2013

Make your computer talk like Iron man's Jarvis

How to Get Started ??
Things you need -
A microphone or internal Microphone
windows 7 and windows speech macros, download it from here
install it then make Macros to start work
Now open notepad and paste code in notepad
for example
<listenFor>Jarvis</listenFor>
<speak>Hello Mr. STark</speak>
</command>
</speechMacros>
paste it and save as filename.WSRMac
.WSRMac extention is must for it,
then Goto your WSRMac file and click on
Now click on "import signing Cerificate" and automaticly it will save a digital signature for it.

Now open Speech recognition

Now Give Your Instructions, you can minizmise to hide this window

Examples to help you get started..... Follow these codes :

Example 1 :
<listenFor>Jarvis</listenFor>
<speak>Hello Mr. STark</speak>
</command>
</speechMacros>

Example 2 :
<listenFor>Good Morning Jarvis</listenFor>
<speak>Good Morning Sir. how are you today</speak>
</command>
</speechMacros>

Further, more you can use these lines of codes for Shutting 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>

now i have ms exel work then..

<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>
Track chnages in Music
<command priority="100">
<listenFor>next change</listenFor>
<sendKeys>{ALT}rh</sendKeys>
</command>
<command priority="100">
<listenFor>accept change</listenFor>
<sendKeys>{ALT}rac</sendKeys>
</command>
To click
<command priority="100">
<listenFor>?mouse click</listenFor> <mouse button="left" command="click" />
</command>
if you need codes of any command leave comment below, and i will try to give you source codes.

Enjoy Talking to your Computer ! 

No comments:

Post a Comment