Calibrating speakers
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
Calibrating speakers
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> DSP
Author Message
Michel Rouzic
Guest





Posted: Tue Dec 27, 2005 5:15 pm    Post subject: Calibrating speakers Reply with quote

I just got a new set of 2.1 speaker for my PC for christmas, my main
problem with it is that it outputs a very altered sound, mostly the
bass, they are way too loud. I firstly thought it would be easy fixing
that with some software equalizer but no, the sound is still very
weird.

I thought about playing a delta function through my speakers and record
it with a microphone to look at the frequency response, the problem
with it is I have no mic.

Does any of you out there know a good way to calibrate speakers so that
they play every frequency at the same amplitude other than changing the
equalizer until it sounds good (which I can't achieve)?
Back to top
Vladimir Vassilevsky
Guest





Posted: Tue Dec 27, 2005 5:15 pm    Post subject: Re: Calibrating speakers Reply with quote

Tuning the equalizer by trial and error requires a lot of work and a
good experience with the audio. A low cost mike will greatly simplify
the task.

First of all, any equalizer can't make the good speakers from the bad
speakers. You can get a very noticeable improvement by attenuating the
high resonant peaks in the frequency response. It is possible to achieve
the perfect response in one particular location; however it is not going
to make a uniform response in a sector of directions.

Secondly, the delta function does not provide you enough energy for the
measurement. Use a white noise or a frequency sweep instead.

Third, the response is going to be affected by the reflections from the
walls of your room. Find an acoustically dead room or use a tray of
delta functions with the time gating at the input to cut off the
reflections.

Vladimir Vassilevsky

DSP and Mixed Signal Design Consultant

http://www.abvolt.com
Back to top
Michel Rouzic
Guest





Posted: Wed Dec 28, 2005 8:20 am    Post subject: Re: Calibrating speakers Reply with quote

Vladimir Vassilevsky wrote:
Quote:
Michel Rouzic wrote:

I just got a new set of 2.1 speaker for my PC for christmas, my main
problem with it is that it outputs a very altered sound, mostly the
bass, they are way too loud. I firstly thought it would be easy fixing
that with some software equalizer but no, the sound is still very
weird.

I thought about playing a delta function through my speakers and record
it with a microphone to look at the frequency response, the problem
with it is I have no mic.

Does any of you out there know a good way to calibrate speakers so that
they play every frequency at the same amplitude other than changing the
equalizer until it sounds good (which I can't achieve)?


Tuning the equalizer by trial and error requires a lot of work and a
good experience with the audio. A low cost mike will greatly simplify
the task.

Yeah, i tried by trial and error, and I can tell, it's nearly
impossible for me to get to a satisfying result. When you say low cost
price, what price range do you think about (or even, which precise mic
do you think about?)

Quote:
First of all, any equalizer can't make the good speakers from the bad
speakers. You can get a very noticeable improvement by attenuating the
high resonant peaks in the frequency response. It is possible to achieve
the perfect response in one particular location; however it is not going
to make a uniform response in a sector of directions.

Yeah, I figured that out, but if I can get a good result at the place
i'm always sitting, it will be a great improvement yet.

Quote:
Secondly, the delta function does not provide you enough energy for the
measurement. Use a white noise or a frequency sweep instead.

Funny, I thought about both, but for some reason I thought that a white
noise wouldn't be reliable due to its random nature and that it would
be too complicated to deal with a frequency sweep. But I also figured
out that using a delta function would be bad because the background
noise would corrupt it too much. i'll try with the white noise whenever
I get a mic I guess.

Quote:
Third, the response is going to be affected by the reflections from the
walls of your room. Find an acoustically dead room or use a tray of
delta functions with the time gating at the input to cut off the
reflections.

For the acoustically dead room, it's not going to be possible. A tray
of delta functions with time gating... i'm not sure to exactly know
what it is, but I guess you're talking about cancelling the effects of
the room's echo by emitting delta functions and looking for reflections
of the delta function in the recorded output.

By the way, do you know anything that would make you able to convolve
your Windows sound output with a user-defined kernel (even if it has to
be a pretty small kernel) because that may be very handy (imagine
recording the output of a white noise, a turning it in a way so it can
be directly used as a kernel in a convolution, not even talking about
how you could turn your kernel so it can pretty much cancel echoes)

Anyways, i didn't expect such a complete reply, so thanks for that
Back to top
John E. Hadstate
Guest





Posted: Wed Dec 28, 2005 9:15 am    Post subject: Re: Calibrating speakers Reply with quote

Positioning the speakers can have a great effect on the
perceived frequency response. For example, if you put the
speakers in a corner or close to the floor, you will
perceive an inordinate bass boost.

Try using one speaker as a speaker and the other as a
microphone. If the two speakers are nearly identical, the
frequency response of either one will be approximately the
square-root of the response of the pair. If you have more
than two speakers, choose the two that are nearly identical,
characterize their response, and then use one of them to
characterize the response of the rest.

If you throw a cheap microphone into the mix, how will you
account for the frequency response and non-linearity of the
microphone when you are trying to measure the response of
your speakers?
Back to top
Michel Rouzic
Guest





Posted: Wed Dec 28, 2005 5:15 pm    Post subject: Re: Calibrating speakers Reply with quote

John E. Hadstate wrote:
Quote:
"Michel Rouzic" <Michel0528@yahoo.fr> wrote in message
news:1135736442.333435.304670@o13g2000cwo.googlegroups.com...


Positioning the speakers can have a great effect on the
perceived frequency response. For example, if you put the
speakers in a corner or close to the floor, you will
perceive an inordinate bass boost.

yeah I noticed that, my bass speaker was to the floor, now that I
surrounded it the bass level is more OK.

Quote:
Try using one speaker as a speaker and the other as a
microphone. If the two speakers are nearly identical, the
frequency response of either one will be approximately the
square-root of the response of the pair. If you have more
than two speakers, choose the two that are nearly identical,
characterize their response, and then use one of them to
characterize the response of the rest.

good idea! i'll try that, although it may get a lil bit hard since it's
a 2.1 system. What I probably should do would be to do that with the
two satellite speakers, then once i would have deduced the frequency
response for one satellite, I could record the output of the bass
speaker, but the problem again is that the input for the whole system
is a stereo jack plug, and that I can't think of any way to prevent one
speaker from outputing sound while another does it on that system.

Plus, the stop band attenuation of one satellite speaker *may* be too
strong for find out correctly the frequency response of the bass
speaker.

Quote:
If you throw a cheap microphone into the mix, how will you
account for the frequency response and non-linearity of the
microphone when you are trying to measure the response of
your speakers?

that's right... i'd need a way to output a "perfect" white noise to
calibrate the microphone. one way to do it would be to deduce the
frequency response of one satellite speaker as mentionned above, and,
provided that the stopband attenuation of the satellite speaker or the
microphone is nowhere too strong, deconvolve a white noise with the
frequency response of a satellite speaker, and record the output with
the microphone to find out its frequency response.

I'd first need to play a frequency sweep with only a satellite speaker
to find out if its stopband attenuation in the lowest frequencies i OK,
and then i'd need to make sure to get a microphone that can get a
decently low stopband attenuation in all the frequencies that my 2.1
speaker system is able to output. That's mainly on that last thing (the
choice of a micrphone) that i'd need a good advice I guess
Back to top
Carlos Moreno
Guest





Posted: Wed Dec 28, 2005 5:16 pm    Post subject: Re: Calibrating speakers Reply with quote

Michel Rouzic wrote:
Quote:
I just got a new set of 2.1 speaker for my PC for christmas, my main
problem with it is that it outputs a very altered sound, mostly the
bass, they are way too loud. I firstly thought it would be easy fixing
that with some software equalizer but no, the sound is still very
weird.

I thought about playing a delta function through my speakers and record
it with a microphone to look at the frequency response, the problem
with it is I have no mic.

Does any of you out there know a good way to calibrate speakers so that
they play every frequency at the same amplitude other than changing the
equalizer until it sounds good (which I can't achieve)?

Several clarifications/corrections to some of the comments so far:

1) It's *pink* noise, rather than white noise what makes the
measurements easier (pink noise has equal amount of energy
per octave -- actually, per equal-geometric-size bands)

2) Freq. response of the microphone is almost irrelevant -- as long
as it does not change over time and it is *known*, then you're
fine.

I remember a while ago, owning an equalizer that came with a
calibrated microphone (a cheap microphone, but with known -- by
the equalizer -- frequency response) and pink noise generator
and a "spectrum analyzer" screen that showed the frequency
contents -- you could play with the Eq. controls until you
observe a reasonably flat spectral contents. The quality of
the result was remarkable (provided good quality/low-distortion
speakers and a reasonably low-reflection room, as has been
already pointed out)

Maybe you could try some local pro-audio store and see if they
have this sort of equipment for rental -- you could rent it for
one day and adjust your speakers.

Another solution (one I very often use): go buy yourself an
AKG K-501 headphones -- you should find one of those for around
100 US$, and the sound is amazingly good, I find. They do have
good frequency response; then, find a pink noise source (worst
case, generate it by software and burn/record it to a CD), and
use your Eq. to pass one band at a time, and compare (by ear)
how much louder does it sound in the speakers with respect to
the headphones. Write down all the results, and then adjust
at the end.

Another solution could be to generate filtered pink noise (each
individual band), and then, as you play each band, you can attempt
adjustment to make the speakers sound exactly as loud as the
headphones.

The advantage of this is that you end up owning a headphone
set that sounds quite amazing -- and you want that anyway, so
no-one loses :-)

HTH,

Carlos
--
Back to top
Michel Rouzic
Guest





Posted: Wed Dec 28, 2005 11:54 pm    Post subject: Re: Calibrating speakers Reply with quote

Carlos Moreno wrote:
Quote:
Michel Rouzic wrote:
I just got a new set of 2.1 speaker for my PC for christmas, my main
problem with it is that it outputs a very altered sound, mostly the
bass, they are way too loud. I firstly thought it would be easy fixing
that with some software equalizer but no, the sound is still very
weird.

I thought about playing a delta function through my speakers and record
it with a microphone to look at the frequency response, the problem
with it is I have no mic.

Does any of you out there know a good way to calibrate speakers so that
they play every frequency at the same amplitude other than changing the
equalizer until it sounds good (which I can't achieve)?

Several clarifications/corrections to some of the comments so far:

1) It's *pink* noise, rather than white noise what makes the
measurements easier (pink noise has equal amount of energy
per octave -- actually, per equal-geometric-size bands)

Thanks for your input. I dropped the idea of using a noise, anyways, a
pink noise is a good idea, but as for the speakers I tested, their peak
is around 300 Hz and lower. Using a pink noise would make it harder to
mesure anything in the highest frequencies.

Quote:
2) Freq. response of the microphone is almost irrelevant -- as long
as it does not change over time and it is *known*, then you're
fine.

The problem is, how are you gonna know it?

Quote:
I remember a while ago, owning an equalizer that came with a
calibrated microphone (a cheap microphone, but with known -- by
the equalizer -- frequency response) and pink noise generator
and a "spectrum analyzer" screen that showed the frequency
contents -- you could play with the Eq. controls until you
observe a reasonably flat spectral contents. The quality of
the result was remarkable (provided good quality/low-distortion
speakers and a reasonably low-reflection room, as has been
already pointed out)

Maybe you could try some local pro-audio store and see if they
have this sort of equipment for rental -- you could rent it for
one day and adjust your speakers.

Thanks, but I found another solution. I had another set of 2.0
speakers, as I just tested them they're doing OK between 35 Hz and
22,050 Hz, so I played a frequency sweep through one and recorded with
the other, and now with a good enveloppe detection of mine and by
performing a square root and a 1/x on it I'll have the frequency
response of the kernel to perform a deconvolution. I only wish I could
filter it in order to get rid of most of the noise, by having a
bandpass filter that would follow the frequency sweep, but I can't
think of a way to perform a bandpass filter that changes over time
(unless i cut the frequency sweep in little bits and filter it to keep
what i want to keep)

By the way, when i'll record the output of my 2.1 speakers with the
other speaker which I know the frequency response, should I firstly
convolve the frequency sweep with my deconvolution kernel, or should i
just play it as it is and then deconvolve the result?
I thought that deconvolving in the first place may be better because
i'll have more power on the frequencies that the speaker will record
the weaker, but I also thought it may not give a result as reliable as
if i do the deconvolution afterward, I mean, if I play the unchanged
frequency sweep through one of the 2.0 speakers, and record it with the
other, and perform the deconvolution afterwards, then i'll get
something pretty much flat. As if I deconvolve before playing it
through the speaker, i'll have to assume that the frequencies at which
the speakers are the weaker are outputted and recorded at the planned
amplitude.

Anyways, I think what I really need right now is to filter the recorded
output to get rid of as much noise as I can, because if I don't, I'll
get bogus results due to the important amplitude of the noise compared
to the weakest parts of the signal, and for that i need to find a way
to have some kind of bandpass filter that varies over time

Quote:
Another solution (one I very often use): go buy yourself an
AKG K-501 headphones -- you should find one of those for around
100 US$, and the sound is amazingly good, I find. They do have
good frequency response; then, find a pink noise source (worst
case, generate it by software and burn/record it to a CD), and
use your Eq. to pass one band at a time, and compare (by ear)
how much louder does it sound in the speakers with respect to
the headphones. Write down all the results, and then adjust
at the end.

Another solution could be to generate filtered pink noise (each
individual band), and then, as you play each band, you can attempt
adjustment to make the speakers sound exactly as loud as the
headphones.

The advantage of this is that you end up owning a headphone
set that sounds quite amazing -- and you want that anyway, so
no-one loses :-)

HTH,

Carlos

hehe, yeah but i'd prefer to calibrate it the way i'm trying, not only
i'll have a way to calibrate it an almost-automated way, but it's also
a good occasion to use my knowledge in DSP and my tools in a usefull
way.
Back to top
Michel Rouzic
Guest





Posted: Wed Dec 28, 2005 11:55 pm    Post subject: Re: Calibrating speakers Reply with quote

John E. Hadstate wrote:
Quote:
"Michel Rouzic" <Michel0528@yahoo.fr> wrote in message
news:1135736442.333435.304670@o13g2000cwo.googlegroups.com...


Positioning the speakers can have a great effect on the
perceived frequency response. For example, if you put the
speakers in a corner or close to the floor, you will
perceive an inordinate bass boost.

Try using one speaker as a speaker and the other as a
microphone. If the two speakers are nearly identical, the
frequency response of either one will be approximately the
square-root of the response of the pair. If you have more
than two speakers, choose the two that are nearly identical,
characterize their response, and then use one of them to
characterize the response of the rest.

If you throw a cheap microphone into the mix, how will you
account for the frequency response and non-linearity of the
microphone when you are trying to measure the response of
your speakers?

never mind for the microphone thing. i found a 2.0 set of speakers
laying there, and I played a frequency sweep through one and recorded
it with the other to find out their frequency response. they have a
decent response between 35 Hz and 22,050 Hz, so it will be fine
Back to top
Michel Rouzic
Guest





Posted: Thu Dec 29, 2005 1:16 am    Post subject: Re: Calibrating speakers Reply with quote

Vladimir Vassilevsky wrote:
Quote:
Michel Rouzic wrote:



Tuning the equalizer by trial and error requires a lot of work and a
good experience with the audio. A low cost mike will greatly simplify
the task.


Yeah, i tried by trial and error, and I can tell, it's nearly
impossible for me to get to a satisfying result. When you say low cost
price, what price range do you think about (or even, which precise mic
do you think about?)

Surpirisingly enough, a $2 Panasonic electret capsule from Radioshack
does a good job.


Secondly, the delta function does not provide you enough energy for the
measurement. Use a white noise or a frequency sweep instead.


Funny, I thought about both, but for some reason I thought that a white
noise wouldn't be reliable due to its random nature

With the noise, you have to apply the sufficient amount of averaging to
the results.

and that it would
be too complicated to deal with a frequency sweep.

With the frq sweep, you have to look for the peak values on the spectrum.


By the way, do you know anything that would make you able to convolve
your Windows sound output with a user-defined kernel (even if it has to
be a pretty small kernel) because that may be very handy (imagine
recording the output of a white noise, a turning it in a way so it can
be directly used as a kernel in a convolution, not even talking about
how you could turn your kernel so it can pretty much cancel echoes)

As for myself I do such things in plain C. There are many different
softwares for equalization, however I prefer to know what exactly I am
measuring.

Isn't it a bit complex/delicate to make all of the sound output of your
coputer go through your C program? I'd be curious to know how you can
do such a thing anyways
Back to top
Michel Rouzic
Guest





Posted: Thu Dec 29, 2005 1:16 am    Post subject: Re: OT question Re: Calibrating speakers Reply with quote

Richard Owlett wrote:
Quote:
Michel Rouzic wrote:
I just got a new set of 2.1 speaker [snip]

and elsewhere in thread reference made to "2.0 speaker".

What is 2.0|2.1 speaker?

PS. Only dumb question is the the one you don't ask.

It's not a dumb question :-). 2.0/2.1/4.1/5.1 means the number of
satelitte speakers and of bass speakers. Thus, a 2.1 system has two
satellite speakers, mostly dedicated to medium and high frequency and a
bass speaker, as a 2.0 system has two speakers which are usually able
of inputting any sound in the audible range.
Back to top
Michel Rouzic
Guest





Posted: Thu Dec 29, 2005 1:16 am    Post subject: Re: Calibrating speakers Reply with quote

Carlos Moreno wrote:
Quote:
Michel Rouzic wrote:

Another solution (one I very often use): go buy yourself an
AKG K-501 headphones [...]

hehe, yeah but i'd prefer to calibrate it the way i'm trying, not only
i'll have a way to calibrate it an almost-automated way, but it's also
a good occasion to use my knowledge in DSP and my tools in a usefull
way.

Yeah... But you won't have an AKG K-501 !!! :-P

haha that's right! but i don't have the $100 anyways! (i got cool 50
€ Sony headphones anyways)
Back to top
Michel Rouzic
Guest





Posted: Thu Dec 29, 2005 1:16 am    Post subject: Re: OT question Re: Calibrating speakers Reply with quote

Richard Owlett wrote:
Quote:
Michel Rouzic wrote:
Richard Owlett wrote:

Michel Rouzic wrote:

I just got a new set of 2.1 speaker [snip]

and elsewhere in thread reference made to "2.0 speaker".

What is 2.0|2.1 speaker?

PS. Only dumb question is the the one you don't ask.


It's not a dumb question :-). 2.0/2.1/4.1/5.1 means the number of
satelitte speakers and of bass speakers. Thus, a 2.1 system has two
satellite speakers, mostly dedicated to medium and high frequency and a
bass speaker, as a 2.0 system has two speakers which are usually able
of inputting any sound in the audible range.


thank you I'm now educated ;}

you're welcome.

"which are usually able of inputting any sound in the audible range"

you surely understood that I meant outputting, not inputting, although
they can input sound as well
Back to top
Vladimir Vassilevsky
Guest





Posted: Thu Dec 29, 2005 1:16 am    Post subject: Re: Calibrating speakers Reply with quote

Michel Rouzic wrote:


Quote:

Tuning the equalizer by trial and error requires a lot of work and a
good experience with the audio. A low cost mike will greatly simplify
the task.


Yeah, i tried by trial and error, and I can tell, it's nearly
impossible for me to get to a satisfying result. When you say low cost
price, what price range do you think about (or even, which precise mic
do you think about?)

Surpirisingly enough, a $2 Panasonic electret capsule from Radioshack
does a good job.


Quote:
Secondly, the delta function does not provide you enough energy for the
measurement. Use a white noise or a frequency sweep instead.


Funny, I thought about both, but for some reason I thought that a white
noise wouldn't be reliable due to its random nature

With the noise, you have to apply the sufficient amount of averaging to
the results.

Quote:
and that it would
be too complicated to deal with a frequency sweep.

With the frq sweep, you have to look for the peak values on the spectrum.


Quote:
By the way, do you know anything that would make you able to convolve
your Windows sound output with a user-defined kernel (even if it has to
be a pretty small kernel) because that may be very handy (imagine
recording the output of a white noise, a turning it in a way so it can
be directly used as a kernel in a convolution, not even talking about
how you could turn your kernel so it can pretty much cancel echoes)

As for myself I do such things in plain C. There are many different
softwares for equalization, however I prefer to know what exactly I am
measuring.

Vladimir Vassilevsky

DSP and Mixed Signal Design Consultant

http://www.abvolt.com
Back to top
Richard Owlett
Guest





Posted: Thu Dec 29, 2005 1:16 am    Post subject: Re: OT question Re: Calibrating speakers Reply with quote

Michel Rouzic wrote:
Quote:
Richard Owlett wrote:

Michel Rouzic wrote:

I just got a new set of 2.1 speaker [snip]

and elsewhere in thread reference made to "2.0 speaker".

What is 2.0|2.1 speaker?

PS. Only dumb question is the the one you don't ask.


It's not a dumb question :-). 2.0/2.1/4.1/5.1 means the number of
satelitte speakers and of bass speakers. Thus, a 2.1 system has two
satellite speakers, mostly dedicated to medium and high frequency and a
bass speaker, as a 2.0 system has two speakers which are usually able
of inputting any sound in the audible range.


thank you I'm now educated ;}
Back to top
Carlos Moreno
Guest





Posted: Thu Dec 29, 2005 1:16 am    Post subject: Re: Calibrating speakers Reply with quote

Michel Rouzic wrote:

Quote:
Another solution (one I very often use): go buy yourself an
AKG K-501 headphones [...]

hehe, yeah but i'd prefer to calibrate it the way i'm trying, not only
i'll have a way to calibrate it an almost-automated way, but it's also
a good occasion to use my knowledge in DSP and my tools in a usefull
way.

Yeah... But you won't have an AKG K-501 !!! :-P

:-)

Carlos
--
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> DSP All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB