Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8170245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:05:42+00:00 2026-06-06T21:05:42+00:00

i want to use kinect sdk voice recognition to run application from Metro UI.

  • 0

i want to use kinect sdk voice recognition to run application from Metro UI.
For Example when i say the word:News, it would run from Metro UI the application of News.

Thanks to everybody!

Regards!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:05:43+00:00Added an answer on June 6, 2026 at 9:05 pm

    First you need to Make the connection with the audio stream and start listening:

        private KinectAudioSource source;
        private SpeechRecognitionEngine sre;
        private Stream stream;
    
    private void CaptureAudio()
            {
    
                this.source = KinectSensor.KinectSensors[0].AudioSource;
                this.source.AutomaticGainControlEnabled = false;
                this.source.EchoCancellationMode = EchoCancellationMode.CancellationOnly;
                this.source.BeamAngleMode = BeamAngleMode.Adaptive;
    
            RecognizerInfo info = SpeechRecognitionEngine.InstalledRecognizers()
                .Where(r => r.Culture.TwoLetterISOLanguageName.Equals("en"))
                .FirstOrDefault();
    
            if (info == null) { return; }
            this.sre = new SpeechRecognitionEngine(info.Id);
    
            if(!isInitialized) CreateDefaultGrammars();
    
            sre.LoadGrammar(CreateGrammars()); //Important step
    
            this.sre.SpeechRecognized +=
                new EventHandler<SpeechRecognizedEventArgs>
                    (sre_SpeechRecognized);
            this.sre.SpeechHypothesized +=
                new EventHandler<SpeechHypothesizedEventArgs>
                    (sre_SpeechHypothesized);
            this.stream = this.source.Start();
            this.sre.SetInputToAudioStream(this.stream, new SpeechAudioFormatInfo(
                EncodingFormat.Pcm, 16000, 16, 1, 32000, 2, null));
            this.sre.RecognizeAsync(RecognizeMode.Multiple);
    
        }
    

    First you can see in the sample that there’s one important step sre.LoadGrammar(CreateGrammars()); which creates and loads the grammar so you have to create the method CreateGrammars():

    private Grammar CreateGrammars()
            {
    
            var KLgb = new GrammarBuilder();
            KLgb.Culture = sre.RecognizerInfo.Culture;
            KLgb.Append("News");
            return Grammar(KLgb);
    
        }
    

    The above sample create a grammar listening for the word “News”. Once it is recognized (the probability that the word said is one in your grammar is higher than a threshold), the speech recognizer engine (sre) raise the SpeechRecognized event.

    Of course you need to add the proper handler for the two events (Hypothetize, Recognize):

        private void sre_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
        {
    
            this.RecognizedWord = e.Result.Text;
            if (e.Result.Confidence > 0.65) InterpretCommand(e);
        }
    

    Know all you have to do is to write the InterpretCommand method which does whatever you want (as running a metro app 😉 ). If you have multiple words in a dictionnary the method has to parse the text recognized and verify that this is the word news wich was recognized.

    Here you can download samples of a great book on Kinect: Beginning Kinect Programming with the Microsoft Kinect SDK (unfortunately the book itself is not free). On the folder Chapter7\PutThatThereComplete\ you have a sample using audio that you can be inspired by.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I´m using Kinect (Microsoft SDK) with XNA. I want to use GRATF for marker-recognition
i want use some data from a website with web service. i have a
I want use JQuery mobile for the front-end of my mobile application, but I
We have a powerbuilder application and we want use a scanner through this application
I am working on a 3D model reconstruction application with Kinect sensor. I use
I want use MVVM design pattern in WPF and Silverlight Application. Where can i
Example I want use the_excerpt in two locations. On functions.php I add function new_excerpt_length($length)
Kinect camera has a very low resolution RGB image. I want to use point
I want use localized strings from resources in xsl template as in aspx page,
I want use a query like such SELECT personId FROM Person p Inner Join

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.