Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Active Noise Cancellation through default iPhone headphone

We want to create an App that will implement the Active Noise Cancellation using the default iPhone headphone. That is, to receive the external audio using the iPhone headphone Mic and make a phase shift of 180 degree. Finally, to play the inverted sound through default headphone speaker to cancel the external sound(Active noise cancellation).

Ref: http://electronics.howstuffworks.com/gadgets/audio-music/noise-canceling-headphone.htm

Can this be feasible with the iPhone App?

like image 342
Ashok Avatar asked Jul 18 '13 09:07

Ashok


People also ask

Do iPhone headphones cancel noise?

Phone noise cancellation is available and on by default on iPhone 12 and earlier, and can be turned off for your comfort.

How do I make my headphones noise cancel active?

Since active noise cancellation involves more sophisticated engineering and internal technology, there's currently no way to manually DIY such a feature into a pair of regular headphones or earphones.

How do I reduce background noise on my iPhone headphones?

In the Settings app, select Accessibility from the list. On the Accessibility screen, select Audio/Visual. On the Audio/Visual screen select Phone Noise Cancellation to set the toggle switch to On.


2 Answers

The problem i see is that there is one component missing to do a correct noise cancellation: there should be a mike at the headphone output to sense the complete output and close the loop of the noise cancellation system.

Regards

like image 91
Giuseppe Avatar answered Sep 30 '22 16:09

Giuseppe


With sound traveling at 343 m/s, assuming the distance between microphone and speaker is half a meter, you'd have about 1.5 milliseconds of processing time. Not impossible, but not a simple feat either, especially if you take into account the time it takes for the various components to actually start playback and for the recording to get to your app. I think this is also why most of the active noise canceling headphones require specialized hardware.

That said, I think you should definitely go for it. I'm very interested in this as well; I guess you would have to do a Fourier transform on the input and then phase shift it 180° like you said, then transform that back to the time domain, and finally play it to the user?

like image 25
lericson Avatar answered Sep 30 '22 17:09

lericson