Building A noise cancelling program.

Click For Summary

Discussion Overview

The discussion revolves around the feasibility of creating a noise-cancelling program to mitigate the sound of a running faucet from an adjacent room. Participants explore the principles of active noise cancellation, the technical requirements, and the challenges associated with different types of noise frequencies.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests that it is possible to build a noise-cancelling program, referencing the field of "Active Noise Cancellation" and recommending sound processing libraries like "pyo" for Python.
  • Another participant emphasizes that effective noise cancellation requires the microphone and loudspeaker to be close to the noise source, producing sounds that are opposite in phase and equal in amplitude.
  • Concerns are raised about the nature of the noise, with one participant noting that the sound from a faucet is largely high frequency (hiss) and that cancellation is more effective for low to mid-range frequencies.
  • Some participants mention the importance of physical sound insulation alongside active cancellation, especially for mechanical noise sources.
  • There is a suggestion that a directional microphone arrangement could help isolate the noise source, but challenges related to phase accuracy and room reflections are acknowledged.

Areas of Agreement / Disagreement

Participants express differing views on the feasibility and effectiveness of noise cancellation for the specific type of noise generated by a faucet. There is no consensus on the best approach or the limitations of the proposed solutions.

Contextual Notes

Participants note that the effectiveness of noise cancellation may depend on the frequency characteristics of the noise and the physical arrangement of the microphone and speaker. The discussion highlights the complexity of achieving effective cancellation in a typical room environment.

erickulcyk
Messages
8
Reaction score
0
Hello,

If there is a fixed noise like a faucet running, and I sit in a deskchair at a fixed location in an adjacent room, do you think it would be possible the build a program for either the desktop speaker (also fixed), or another computer somewhere else in the room which would cancel out the effect to the faucet? If not, why wouldn't it be possible? If so, are there any good references for how to go about doing this?

Thanks,
Eric
 
Physics news on Phys.org
It is definitely possible. The field of engineering is called "Active Noise Cancellation". You can buy systems that do this already.

As for how to do it, I would recommend looking at sound processing software libraries, for example "pyo" for Python. You will of course need a microphone.
 
The most effective noise cancellation will be when the sensing mike and the loudspeaker are as close to the noise source as possible. The loudspeaker needs to produce sounds that are exactly opposite in phase and of equal amplitude to the noise you are trying to eliminate by destructive interference. Your 'system' needs to be able to identify the unwanted signal so the mike must be much closer to the noise source than the wanted source. Earphones are the easiest to treat, for this reason because you 'know' exactly what sound you want to hear - it has an electronic source. The region where you get cancellation gets tighter, the further apart you site the speaker and the mike. The snag about your particular application is the sound you are trying to eliminate because it's largely HF (hiss) and the wavelength will be only a few tens of cm and cancellation region will be very local.
If you could be sure that the noise source is located in a small area (i.e. noise not getting to you via the extended pipe system but just from the faucet) then you could possibly put a microphone and Speaker right next to the faucet. You could then get an small range of angles from the noise source where the cancellation is significant.
Afaik, most of the noise reduction systems that are available rely on the noise being easily identifiable - like, for instance, when you put a mike in the engine compartment and reduce the noise in the cab - but then the frequencies are low to mid range (much easier).
You could have some fun trying to make it work - you could finally 'help it along' by moving your head about to get the best result (crick your neck haha). It's great that processors work so fast these days that real time DSP is very achievable.
 
Running water is low frequency. Tap hiss is not.

I have seen a marine installation of this that uses active cancellation for HVAC and engine noise (all low frequency) with padding (foam etc in the deck, overheads and ceilings) for high frequency.
 
d3mm said:
Running water is low frequency. Tap hiss is not.

I have seen a marine installation of this that uses active cancellation for HVAC and engine noise (all low frequency) with padding (foam etc in the deck, overheads and ceilings) for high frequency.

It may be that the unwanted noise is mid / low frequency; we'd need to be told.
You re-iterate the point that physical sound insulation is also required when the source is 'mechanical'. This could be something that the OP needs to take into account.

I suppose it may be possible to use a directional microphone arrangement to select the source of the noise but getting the phases correct, in view of multiple reflections in the room, could be a limiting factor.
I imagine that a 'sweet spot' could be generated though, at the expense of other parts of the room.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
12K
Replies
17
Views
6K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 7 ·
Replies
7
Views
4K
Replies
3
Views
5K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K