none
Playing a video file prompted by speech recognition Kinect SDK RRS feed

  • Question

  • I am trying to figure out how to play a video file such as a .wmv or .avi. I want to start playing the video on the window when I say "Play" or "Stop".

    Here is the speech recognition code but I cant figure out how to play a video file.

      private void SreSpeechRecognized(object sender, SpeechRecognizedEventArgs e)
            {
                

                if (e.Result.Text.ToLower() == "play" && e.Result.Confidence >= 0.40)
                {

                    MessageBox.Show("play video file");
                    
                }
                else
                    if (e.Result.Text.ToLower() == "stop" && e.Result.Confidence >= 0.85)
                    {
                        MessageBox.Show("stop video file");
                    }
                if (e.Result.Text.ToLower() == "draw" && e.Result.Confidence >= 0.85)
                {
                    MessageBox.Show("you said draw");
                }


                string status = "Recognized: " + e.Result.Text + " " + e.Result.Confidence;
                this.ReportSpeechStatus(status);

                //Dispatcher.BeginInvoke(new Action(() => { tbColor.Background = brush; }), DispatcherPriority.Normal);
            }

    Please help I would greatly appreciate it

    thanks


    • Edited by Lutz91 Friday, April 27, 2012 2:29 AM
    Friday, April 27, 2012 1:42 AM

All replies