Kinect voice commands to control connected serial devives RRS feed

  • Question

  • Hello,

    I fairly new to working with Kinect.  I'm asking for anyone tp point me in the right direction for a forum to use Kinect, connect to a PC, to accept custom voice commands such as "TV off" TV on" TV Volume up '3'".  These devices, TV, receiver, etc... would be connected to the PC via serial connections with well documented serial commands from the manufacturer.

    What forum would this be?  Has anyone worked in something like this?

    Thank you for any help!


    Saturday, January 19, 2013 8:59 PM

All replies

  • Hello

    Yes, in kinect you have the Speech Recognition Component. I think you should go throug the Sample programs which microsoft had provided in their V1.6 sdk. Once you install the V1.6 sdk, the Kinect Studio will have list of programs which you have to install and run those to see your Kinect working. So, there are some examples on the Speech Recognition too. I suggest you better go through those. I also suggest, as you are new to Kinect, would recommend to go through some sample eBook which gives a good explanation on Kinect for all components.

    I Personally felt that the following Book gives you a good insight. Please do try this link.

    Note: The eBooks are proprietory of the site and please do follow the instructions given in the site before you download.



    Srinivasa Nadella

    Monday, January 21, 2013 1:24 PM
  • Start from "Speech Basics" example from Kinect for Windows Developer Toolkit.

    If you want utilize American language, modify the SpeechGrammar.xml with your commands... for example:

    <grammar version="1.0" xml:lang="it-IT" root="rootRule" tag-format="semantics/1.0-literals" xmlns="">
      <rule id="rootRule">
              <item> tv off </item>
              <item> tv shutdown </item>
              <item> tv power off </item>
              <item> tv volume up three </item>

    In the file MainWindow.xaml.cs modify the private void SpeechRecognized method with:

    private void SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
        // Speech utterance confidence below which we treat speech as if it hadn't been heard
        const double ConfidenceThreshold = 0.3;
        if (e.Result.Confidence >= ConfidenceThreshold)
            switch (e.Result.Semantics.Value.ToString())
                case "OFF":
                    //ADD COMMANDS TO EXECUTE WHEN THE SYSTEM RECOGNIZE "tv off" or "tv shutdown" or "tv power off"
                case "PLUS_3":
                    //ADD COMMANDS TO EXECUTE WHEN THE SYSTEM RECOGNIZE "tv volume up three"

    Now you can start to focus on the serial connection without lose time on the speech recognition ;)
    After you can easly modify the user interface... remember to delete the Turtle! :D

    • Proposed as answer by The Thinker Tuesday, January 29, 2013 3:42 PM
    Tuesday, January 29, 2013 1:38 AM
  • Do as clemente suggests except you can find many examples for accessing the serial ports on the vb  and c# forums and plug them into this code from his post above:

        switch (e.Result.Semantics.Value.ToString())
                case "OFF":
                    //ADD COMMANDS TO EXECUTE WHEN THE SYSTEM RECOGNIZE "tv off" or "tv shutdown" or "tv power off"
                case "PLUS_3":
                    //ADD COMMANDS TO EXECUTE WHEN THE SYSTEM RECOGNIZE "tv volume up three"

    in forums you will find plenty of serial port examples (their might be some in c# forums but the ones are simple to understand):

    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog -

    • Edited by The Thinker Tuesday, January 29, 2013 3:41 PM
    Tuesday, January 29, 2013 3:41 PM