Pages

Wednesday, June 5, 2013

How to make your PC talk like Jarvis

The project development on "human computer interface" and "Gestural interface" has already been started by my side, which are capable of having feature like voice recognition,gestural interfaces. Some of those projects have been partially developed and working in desired manner, but few features and modules are yet to implement and on their way of completion in very short span of time.

So lets come to the body of this article.The reason of writing this post for my readers is to share what I've achieved till yet in this journey of Artificial Intelligence. Here is one gift GIFT for my readers in the form of a PROJECT with the topic "how make your computer talk like Jarvis".Jarvis is totally based on Artificial intelligence aka Artificial Brain. Eventually, we can't such a huge artificial brain by using these following steps because of the simplicity and efficiency of this project. But I can make you assure that after this you make your computer talk, and this will be your first interestingly step in the world of Artificial intelligence. And later, you can go in more deeper as soon as you'll come to know its depth.So Lets start with your first step in this world with this example :

Example 3:<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.NEThere 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 currentTimecurrentTime = FormatDateTime(Time(), 1)Application.Speak TimeApplication.SetTextFeedback Time]]></script></command>

</command>
if you need codes of any command leave comment below, and i will try to give you source codes.

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.