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 8430529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:36:58+00:00 2026-06-10T05:36:58+00:00

I want to have kinect only pick up speech from a user who is

  • 0

I want to have kinect only pick up speech from a user who is directly in front of it.
I don’t want noise or people talking on the right or left to be detected.
Or if the user moves to the right or left of the kinect.
Is this possible?

var audioSource = this.Kinect.AudioSource;
audioSource.BeamAngleMode = BeamAngleMode.Adaptive;
var kinectStream = audioSource.Start();

I have played around with ManualBeamAngle, but do not think that is what I want.

Any help would be appreciated.
cp

  • 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-10T05:36:59+00:00Added an answer on June 10, 2026 at 5:36 am

    You can use the Source angle to find this, they are both 0 when in the middle. See Audio Basics – WPF, and change the code to this:

        double sourceAngle;
    
        ...
    
        private void AudioSourceBeamChanged(object sender, BeamAngleChangedEventArgs e)
        {
            beamRotation.Angle = -e.Angle;
            sourceAngle = e.Angle;
            beamAngleText.Text = string.Format(CultureInfo.CurrentCulture, Properties.Resources.BeamAngle, e.Angle.ToString("0", CultureInfo.CurrentCulture));
        }
    
        private void AudioSourceBeamChanged(object sender, BeamAngleChangedEventArgs e)
        {
            beamRotation.Angle = -e.Angle;
            beamAngleText.Text = string.Format(CultureInfo.CurrentCulture, Properties.Resources.BeamAngle, e.Angle.ToString("0", CultureInfo.CurrentCulture));
        }
    
        private void AudioReadingThread()
        {
            // Bottom portion of computed energy signal that will be discarded as noise.
            // Only portion of signal above noise floor will be displayed.
            const double EnergyNoiseFloor = 0.2;
    
            while (this.reading)
            {
                while (sourceAngle == 0) //this is the important part
                {
                    int readCount = audioStream.Read(audioBuffer, 0, audioBuffer.Length);
    
                    // Calculate energy corresponding to captured audio in the dispatcher
                    // (UI Thread) context, so that rendering code doesn't need to
                    // perform additional synchronization.
                    Dispatcher.BeginInvoke(
                    new Action(
                        () =>
                        {
                            for (int i = 0; i < readCount; i += 2)
                            {
                                // compute the sum of squares of audio samples that will get accumulated
                                // into a single energy value.
                                short audioSample = BitConverter.ToInt16(audioBuffer, i);
                                this.accumulatedSquareSum += audioSample * audioSample;
                                ++this.accumulatedSampleCount;
    
                                if (this.accumulatedSampleCount < SamplesPerColumn)
                                {
                                    continue;
                                }
    
                                // Each energy value will represent the logarithm of the mean of the
                                // sum of squares of a group of audio samples.
                                double meanSquare = this.accumulatedSquareSum / SamplesPerColumn;
                                double amplitude = Math.Log(meanSquare) / Math.Log(int.MaxValue);
    
                                // Renormalize signal above noise floor to [0,1] range.
                                this.energy[this.energyIndex] = Math.Max(0, amplitude - EnergyNoiseFloor) / (1 - EnergyNoiseFloor);
                                this.energyIndex = (this.energyIndex + 1) % this.energy.Length;
    
                                this.accumulatedSquareSum = 0;
                                this.accumulatedSampleCount = 0;
                                ++this.newEnergyAvailable;
                            }
                        }));
                }
            }
    

    The line sourceAngle == 0) does this for us. Hope this helps!

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

Sidebar

Related Questions

I have a UITextView and I want have two buttons. When the user taps
I want to have a form on my page take user input, a URL
I want to develop a gesture recognition. I'm considering using the Kinect to have
If I have output from two sources that I want to put together on
I am using mongodb from C#. I have an entity definition, and I want
I want to have mixed https/http site. Moreover I want have redirects from https
I have been programming against Kinect, and I now want to have games react
I would like to have my Arduino respond to information taken from my Kinect.
So I have convert the getDisplayPosition from the beta version of the Kinect SDK
i want have an image and i want to set it as a background

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.