Skip to content Skip to navigation

OpenStax_CNX

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

Navigation

Recently Viewed

This feature requires Javascript to be enabled.
Download
x

Download module as:

  • PDF
  • EPUB (what's this?)

    What is an EPUB file?

    EPUB is an electronic book format that can be read on a variety of mobile devices.

    Downloading to a reading device

    For detailed instructions on how to download this content's EPUB to your specific device, click the "(what's this?)" link.

  • More downloads ...
Reuse / Edit
x

Module:

Add to a lens
x

Add module to:

Add to Favorites
x

Add module to:

 

Software Implementation of Audio Localization

Module by: Elizabeth Gregory, Joseph Cole. E-mail the authors

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!

Content actions

Download module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

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

What is in a lens?

Lens makers point to 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 member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Reuse / Edit:

Reuse or edit module (?)

Check out and edit

If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or a shared Workgroup and then make your edits.

Derive a copy

If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content by creating a derived copy of it and then editing and publishing the copy.