INTRODUCTION
Friends you must have heard the name Jarvis in all series of iron man. Well Jarvis is an artificial intelligence program which is designed to take orders, give a feed back, and perform the task. However there are many artificial intelligence software available these days like Siri (powered by Apple ), Cortana , Braina , and many more but the drawback is they all are made to work online in 3G and 4G networks which are however not available always. therefore I thought of making something which can work offline. Thanks to all those who posted their project over internet, But this is the enhanced version of all available with modified commands.
STEP-1
First of all you will need a computer with windows 7/8/8.1/10. Windows xp or earlier versions are not at all recommended. You will also need desktop microphone or a headset on any inbuilt microphone. it is recommended to use the headset for better experience and understanding.
STEP-2 (MAKE SURE YOUR COMPUTER LISTENS YOU)
- For this you will need to go to control panel from the start menu. In case of windows 10 you could go to This PC>System properties>Control Panel Home. If you don't get the screen as shown click on "View by" on the top right corner of screen and select "large icons". Hope all of you are here !>
- Now click on setup microphone. You must be having this screen now !
- Click on next and continue to set up your microphone. It will ask you to utter few words. It is recommended to headset microphone in case of headset microphone and desktop microphone in case of your inbuilt laptop microphone.
- After setting up your microphone click on Take speech tutorials and complete the tutorial, Recommended, but not necessary.
- Now click on Train your computer to better understand you. this would help your computer to understand your voice and tune in the frequency of your voice it is a must step and you should try to provide more and more training to your computer.
- Now start speech recognition try to give simple command to your computer to check if your computer is listening to you or not.
- However now your computer can listen you but cannot provide you the voice feedback, the system is currently able to take straight windows command which are obviously a little boring.
- Now in next step we will learn how to make the computer respond to you and give necessary feedbacks. Also it would be able to take all the necessary command you want. Like it could tell you time, shutting down computer, playing music, providing whether, texting on social media for you, providing you necessary suggestions and many more thing with just an utter of your voice.
STEP-3 (DOWNLOAD Windows Speech Recognition Macros )
- You can download Windows Speech Recognition Macros from here. If the download link doesn't works you could directly go to-> https://www.microsoft.com/en-in/download/confirmation.aspx?id=13045
STEP-4 (SETTING UP SPEECH RECOGNITION MACROS)
- Install the WINDOWS SPEECH RECOGNITION MACROS (WSRM) on your computer.
- After successful installation launch the WSRM.
- Now you will be able to see the small icon of WSRM in taskbar and an icon on the desktop.
- Once this desktop shortcut is created, I highly suggest copying it into your startup folder. To access your startup folder quickly, you can just pull up your Start Menu, click “All Programs, ” scroll down to “Startup,” right-click and choose “open.” Then copy your Windows Speech Recognition Macros shortcut to this location. By doing so, you allow the program to automatically start whenever you boot your computer.
- Your desktop screen must be looking like this !
- Now right click on the WSRM icon on the taskbar then select security then click in create on "Create signing certificate".
- A pop up appears , click ok on it. Remember you need to do this step every time you want to make changes to your XML codes.
STEP-5 (Working with XML Codes)
- Let’s start with something simple. Think of a name for your computer… for this example I’m going to name my computer Jarvis (it seems only fitting). First, make sure your Speech Recognition is enabled, and Windows Speech Recognition Macros is running. In your task manager (the bottom right-hand corner of your task bar) double-click the Windows Speech Recognition 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. WSRM 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’s a quick synopsis of what you’re 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.
- <speak></speak> - This tells the computer what word or phrase to speak to provide valuable feedback.
- </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> – It is a closing speech macros tag.
- Now it finishes your training about working with WSRM. And its time for you to create your own Macros or copy the list of codes I have provided below in next step.
- After you have done writing the code as you can see in Image I wrote a very simple xml code then click on Next then Create and you are done creating your first speech macros.
- Now if any one is still facing any problem, write in comments because here all your lessons comes to an end and I will be providing codes in next steps.











No comments:
Post a Comment