Skip to content Skip to navigation

Connexions

You are here: Home » Content » Software Implementation of Audio Localization

Navigation

Content Actions

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • Rice University OCW

    This module is included inLens: Rice University OpenCourseWare
    By: OpenCourseWare ConsortiumAs a part of collection:"Audio Localization"

    Click the "Rice University OCW" link to see all content affiliated with them.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

Software Implementation of Audio Localization

Module by: Elizabeth Gregory, Joseph Cole

Summary: In this section, we will go over the C code we used for the DSK board and the options for the signal input in testing the algorithm.

Code Description

Our final implementation for the DSP board is written in C, and consists of two major functions, the interrupt service routine and the main function. The samples arrive and are put into a buffer for each microphone channel by the McBSP1 receive interrupt routine. This function keeps track of how full the buffers are, and sets a flag when they are full. The main function waits for the buffer full flag, and processes the contents of the buffers when the flag is set. The algorithm is the same as the signal integration method described in the Matlab Simulation section. The code keeps an average of the last 128 region codes selected, which is the value that is output on the DSP board's LEDs.

Signal Input Options

For our signal input, we have two options:

  1. Ideal Signal generated in Matlab
  2. Real signal from the microphone array.
To thoroughly test this algorithm, we tried both options, starting with the ideal signal, since this would help us in debugging. Later, we tried using a real signal, generated from a computer across the room. Unfortunately, within this option lies the danger of acoustics; the answer the algorithm gives us will even depend on the number of people in the room!

Comments, questions, feedback, criticisms?

Send feedback