Wiki

This version (20 Jun 2012 16:59) was approved by William Jahn.

This is an old revision of the document!


Enhanced Stereo Capture

Click here to return to the ADI Algorithms page

The Enhanced Stereo Capture (ESC) algorithm takes a stereo record-signal and creates a wider stereo image. The ESC is meant as a record algorithm in order to capture an enhanced stereo image from two closely spaced microphones. [For stereo widening on the playback side, check Phat-Stereo]


Input Pins

NameFormat [int/dec] - [control/audio]Function Description
Pin 0: Audio In 1decimal - audioLeft channel audio input (from mic)
Pin 1: Audio In 2decimal - audioRight channel audio input (from mic)

Output Pins

NameFormat [int/dec] - [control/audio]Function Description
Pin 0: Audio Out 1decimal - audioStereo enhanced left channel audio output
Pin 1: Audio Out 2decimal - audioStereo enhanced right channel audio output

GUI Controls

GUI Control NameDefault ValueRangeFunction Description
Stereo Balance Gain0dB[-20dB, 20dB]This gain knob control adjusts how much stereo effect is achieved in the algorithm. Depending on the spacing of the microphones in the record environment, this value should be adjusted to obtain the best stereo perceptual results.

DSP Parameter Information

GUI Control NameCompiler NameFunction Description
Stereo Balance GainESC1Alg1gainThe dB value in the control is converted to a linear gain value and written to the DSP.

Algorithm Description

The ESC algorithm accepts two input signals obtained from two closely spaced microphones. The algorithm separates these two signals and widens the stereo image. The end perceptual result is a widened stereo image as if the audio had been captured by microphones with greater L/R separation. The algorithm is based on proprietary filtering and a Stereo Balance Gain that adjusts how much stereo effect is archived in the algorithm.

Depending on the spacing of the microphones in the record environment, a different Stereo Balance Gain should be selected. There are two recommended methods to do this required algorithm tuning.

1) Simulated delay between the microphones to maximize the L/R separation (described below)

2) Listening tests while adjusting the gain knob (shown in the Example section)

The tuning required for method 1) can be done within SigmaStudio. The following schematic image shows how this is accomplished. The goal is to adjust the Stereo Balance Gain until the greatest visual difference in level is achieved between the left and right output signals.

The Tone block represents the signal being captured by the microphones. The tone frequency should be selected to maximize the L/R separation for a target frequency range. The Linear Gain block only serves to bring down the end level of the signal so that it is viewable on the visual Level Detectors. The Delay block works to simulate the delay difference between the microphones. Thus the left signal passes though with no delay. The right signal however, goes through 4 samples of delay to simulate a spacing difference of ~2.8cm between the left and right microphones. Change this delay value to match the corresponding distance between the microphones based on this formula:

Finally, adjust the Stereo Balance Gain to maximize the level difference between L and R on the Level Detectors. This will maximize the separation between the left and right capture signals.

Example

The following schematic image shows the ESC being used to get a wider stereo capture image from an input. The stereo selection Mux allows selection for comparison between the direct input signal, versus the enhanced signal to archive better L/R separation between the mic inputs.

Note: In a full system level design the ESC block should be as close to the inputs as possible in the signal chain. This will ensure the optimal captured separation between the microphones and all resulting processing will be done in stereo.

Algorithm Details

Toolbox Path
Cores SupportedADAU144x
ADAU176x
ADAU178x
“Grow Algorithm” Supportedno
“Add Algorithm” Supportedno
Subroutine/Loop Basedno
Program RAM21
Data RAM12
Parameter RAM7
/srv/wiki.analog.com/data/pages/resources/tools-software/sigmastudio/toolbox/adialgorithms/enhancedstereocapture.txt · Last modified: 03 Jan 2013 20:42 by 127.0.0.1