Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm aware that the best option for noise cancelling is to buy myself a pair of noise cancelling headphones...

But is there any software available that would use the pc mic and headphones to block background noise?

share|improve this question
    
its not possible ! –  joe Oct 28 '09 at 9:35
    
Sorry, nothing new exists, except for cheaper noise cancelling headphones. –  harrymc Sep 11 '12 at 7:23
    
If you mean noise reduction, this question could be relevant: superuser.com/questions/274604/… One answer mentions some software, of which SoilCall Pro does work (at least to reduce most of the noise I had), but has some sound quality issues. –  Qtax May 5 at 22:22
add comment

6 Answers 6

up vote 19 down vote accepted
+100

There are basically two methods for noise suppression

  1. Noise suppression using Wiener-filters. Experience shows that these sound awful even though they are mathematically "optimal". If you can get some information about the actual noise and if the noise is stationary and uncorrelated and if you pour in some additional brainpower, audio quality can be improved upon. But still, this is not a practical solution for most circumstances. (Won't work offline and uses far too much processing power...)
  2. Playback of latency-corrected, phase-inverted background noise together with the usable signal. This works rather well for headphones, although it does usually introduce some smearing in the basses. However, this, too, does not work offline as it needs the actual background noise signal from the surroundings. And it is not very usable for PCs since they introduce too much audio latency. You could try this with some minimal realtime-Linux-kernel, though.

Based on my experiences with audio processing and various noise cancellation techniques, I would recommend some good sound-insulated headphones. Typically, these will result in better sound without the necessity of any signal processing tricks that won't work too well anyway.

share|improve this answer
1  
So, in summary, if software for this purpose did exist, it wouldn't be very effective :( . Unfortunate. –  Alterlife Nov 25 '09 at 13:19
    
as mentioned getting a nice set of headphones would make a huge difference both in general sound quality and in noise blocking. that means the type that covers beyond the ear not the ear bud type speakers. a relitive of mine got me some really nice ones one time as a present and i was astonished at the difference. –  Kendrick Sep 16 '12 at 1:17
    
I wonder if software could work for those annoying repeating or consistent background noises that mess up your hearing. "...chronic exposure to sound even when it is not particularly loud, can wreak havoc on hair cells, causing them to become disarranged and to degenerate." well.blogs.nytimes.com/2013/03/25/what-causes-hearing-loss –  ekangas Dec 1 '13 at 2:12
    
I found this recent article (Jan 2013) on predictive noise cancellation filters after a Google search. Although, the article was published in IET Signal Processing, ranked only 27th on scimagojr.com for Signal Processing. iem.kug.ac.at/fileadmin/media/iem/projects/2013/… –  ekangas Dec 1 '13 at 2:44
1  
@ekangas this is an implementation of (1). These filters work pretty reliably in well-defined non-changing circumstances, but they require non-trivial processing power and they are hard to get right if the noise is non-stationary. As I said in 2009, a good pair of noise-insulating headphones is usually the simpler and cheaper option. They work great for teleconferencing setups, though. –  bastibe Dec 2 '13 at 11:57
add comment

Not possible for physical/hardware reasons.

Noise canceling headphones work by recording sound and playing a phase inverted sound to cancel it. With a laptop the mic is first off shitty, and nicely in front of you this means sound coming from behind you will reach your ears first before it even hits the mic. Then it has to go through the computer onto the slow soundcard (likely a ping of .1seconds or more) to the speakers where it'll play. This lag time will be too great to deal with.

So it comes down to mainly this:
You and the mic hear different things (in headphones they are in your ears).
Lag time from standard laptop soundcards is big, you often can't even get a guitar amp working well for this reason over your computer (near 0 in the headphones).

This would, no matter how optimized result in a horrible experience.

share|improve this answer
add comment

See this article : Noise Cancelling in Software?.

It's interesting, but has no solution.

share|improve this answer
1  
The erticle is from 2005. Maybe it's not relevant anymore. –  Snark Oct 28 '09 at 9:03
1  
Most data in it seems universal. –  harrymc Oct 28 '09 at 9:19
    
I actually have seen that! Google is a wonderful tool :-) . Unfortunately it's a hardware solution... I'm hoping for a similar software solution. –  Alterlife Oct 29 '09 at 12:11
add comment

It's not actually noise cancelling but Chatterblocker can help you mask/ignore external sounds.

share|improve this answer
add comment

Using MATLAB and this guide / sample code:

http://www.mathworks.com/help/dsp/examples/acoustic-noise-cancellation-lms-.html

you could record the noise you are trying to cancel (to a wav) and build an audio output that would cancel it. You might also be able to modify the code to take the mic input as the noise and have it adaptively generate the output and play it out.

Keep in mind noise cancellation works best with low frequency "mechanical" type noises. High pitch (high frequency) noises are much more difficult to cancel.

share|improve this answer
add comment

If the sound you need to cancel is consistent, for example inside an airplane or the hum of a factory, it seems like the computer's lag shouldn't matter, because the sound is the same no matter how late it arrives. The key would be to accurately phase shift the resulting sound in your headphones. For example, one might try adjustable phase shifting software such as on http://freemusicsoftware.org/category/free-vst-effects-2/phase-shifter

You could even record the background noise and then replay it. You would have to adjust the phase until it was the opposite of what your ears hear directly.

If the poor laptop mic was an issue, you could bring along a used SM58 with you cheaply enough.

Any feedback on this idea?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.