Writing Voice Commands with the Kinect
- Posted: Jan 21, 2013 at 6:00 AM
- 3,936 Views
Vuyiswa Maseko is back, continuing his series and today, talking about voice commands...
In this article I demonstrate to you how to use voice commands to input controls in your Kinect application.
I have been doing a Banking prototype in Kinect and i would like to share some exciting small piece of code that I have written with you. I will bring other parts of the functionality that tries to bring basic fundamentals of Kinect to you. This part of functionality represent a part where a system requires a bank account number to print a bank statement for the client without a client standing in a queue.
There are good examples that you can learn from in this Kinect for Windows SDK Programming Guide book to get you started.
Objective
In this article I am trying to give you a basic command to convert your speech into Text and process the commands you have spoken in your application and see what you have said and also get an opportunity to correct it.
Start
Create a WPF application as I have explained in the previous articles and make sure your xaml looks like this
...
Project Retrospective
When you run this project a window like the one below in figure 1.1 will appear
Figure 1.1Now that your application is Running , say numbers from 1 to Zero , start with 1,2,3,4,5,6,7,8,9 and zero , you can add more commands and also don’t forget if you add a command you must declare also a grammar variable and also add it in your xml Grammar file, while you are saying the numbers the screen get refreshed with a new Number and if you made a mistake , you can say “Delete” to delete the last said number as depicted in figure 1.2
...
Project Information URL: http://www.dotnetfunda.com/articles/article2119-how-to-write-using-voice-commands-using-kinect.aspx
Project Download URL: Download source code for How to Write using Voice Commands using Kinect
Project Source URL: Download source code for How to Write using Voice Commands using Kinect
Contact Information:
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?