<< Chapter < Page Chapter >> Page >
The means by which we characterized our speaker to mic channel using a test signal.

Sample signal generation

For our sample signal we decided on a chirp covering the range of human hearing, 15 Hz to 20000 Hz. This signal was created using the Matlab chirp command as follows:

%% Chirp FunctionFs = 44100;f0 = 15; f1 = 20000;t = 0:1/Fs:1-1/Fs; y = chirp(t,f0,1,f1);

where f0 and f1 are the edges of the spectrum of human hearing. The vector t has 44100 entries, each separated by 1/44100. Taken as a time vector and with the end time of the chirp set as 1 second, this creates a chirp which goes from 15 Hz to 20000 Hz in 1 second at intervals of 1/44100 seconds, which allows for a clean transition from 15 Hz to 20000 Hz at the standard sampling rate of 44100 Hz.

Finding the transfer function of the speaker to mic channel

Microphone and Speaker Equipment used for signal sampling

In order to find HRTFs we first had to know the transfer function of the speaker to mic channel through air. We did this by first playing our chirp signal at a mic held approximately 3 feet away and recording the mic output. We did this twice and averaged the two outputs to remove any anomalies. Then using the property that for an LTI filter:

h channel ( t ) in ( t ) = out ( t ) size 12{h_ ital "channel" \( t \) * ital "in" \( t \) = ital "out" \( t \) } {}

or in terms of frequency domain:

H Channel ( ω ) IN ( ω ) = OUT ( ω ) size 12{H_ ital "Channel" \( ω \) cdot ital "IN" \( ω \) = ital "OUT" \( ω \) } {}
H Channel ( ω ) = OUT ( ω ) / IN ( ω ) size 12{H_ ital "Channel" \( ω \) = ital "OUT" \( ω \) / ital "IN" \( ω \) } {}

where H Channel ( ω ) size 12{H_ ital "Channel" \( ω \) } {} is the transfer function of the system and IN ( ω ) size 12{ ital "IN" \( ω \) } {} and OUT ( ω ) size 12{ ital "OUT" \( ω \) } {} are the fourier transforms of the input and output signals respectively. Thus, by taking the fft of the mic output and pointwise dividing by the fft of the chirp signal (3) , we found the transfer function of the speaker to mic channel.

Amplitude Spectrum of Mic to Speaker Transfer Function

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, The science of surround sound. OpenStax CNX. Dec 18, 2010 Download for free at http://cnx.org/content/col11254/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'The science of surround sound' conversation and receive update notifications?

Ask