locked
Kinect Speech Recognition RRS feed

  • Question

  • i use kinect Speech Recognition API

    but when Recognition it i use method

     

     

      void SreSpeechRecognized(object sender, SpeechRecognizedEventArgs e)
            {
                Debug.WriteLine("Rec word=" + e.Result.Text);
    
                switch (e.Result.Text)
                {
    
    
                    case "kinect are you ready":
                        {
                            Speak("I am Ready");
    
                        }
                        break;
    
                        case "kinect close":
                        {
                           
    
                        }
                        break;
                }
    
                    m_context.Send(delegate
                    {
                  
    
                   
                    }, null);
                
            }

     


    but program is loop when i command kinec are you ready

    i want to  one speak for one command .

    what should i do

     

    thank for help me .

     

    Thursday, October 27, 2011 6:57 AM

All replies

  • What do you mean by loop? I don't see anything in your code that should cause even one loop, never mind multiple or infinite loops.

     

    Also, FYI, brackets { } aren't needed to wrap a case statement.

    Saturday, October 29, 2011 2:03 AM
  • How are you building the grammar that you pass to speech recognizer? By "loop" do you mean that when you make your application say "I am ready", the recognizer recognizes "kinect are you ready" phrase?

    Eddy


    I'm here to help
    Tuesday, November 1, 2011 3:51 AM