Agree with the first part of your answer, but not sure what you mean by this second part.
There is dedicated hardware for it, then there are solution using your generic gpu (ex Nvidia RTX Voice), then there are solution using your generic cpu (ex whatever the name of the one discord desktop client provides).
https://shop.asus.com/us/90yh02l1-b2ua00-ai-noise-canceling-...
In theory it should be possible with a standard sound card, or a sound chip in the motherboard.
And the most annoying noises tend to be periodic anyway.
I think you should give it a try... let us test it, if you can cancel out my air conditioner noise you'll be my favorite person...
So, it can be on a generic MCU, but not one where the algorithm is competing for CPU time with other processes.
If it's close to the ear canal, all you need is low latency hardware (or hardware+software), responding in a few milliseconds thereabouts.
I think you have to detect the sound with a microphone, then come up with the canceling waveform before the sound hits your headphone drivers (as they will be generating the canceling waveform). Given the typical size of headphones, it would be something like
2cm/(34300cm/s) ~ 60us
Although, sound travels faster through solids, so might want to be a little quicker. And 2cm thick headphones would be pretty thick.
I imagine you want a very good approximation of the soundwave that will hit the ear (so you can cancel it out very accurately). The farther that your 'virtual microphone' is from the ear, I guess the harder it will be to figure out exactly how the sounds it is picking up will combine to hit the ear.
I mean, imagine the extreme case -- your 'virtual microphone' is (virtually) sitting in the path of some directed audio beam which won't hit the headphone wearer at all. Now you do the signal processing and generate a signal to cancel out that directed audio beam, which, because the user isn't in the path of it, causes them to hear it!
That is generating neverending background noises in a certain selected theme (forest, rain, ocean, zen garden, white noise, ...) and the components can be tuned to our liking (i.e forest, with the amount of wind and bird and other effects one likes).
Quite good! I use that.
(noise cancelling term is misleading btw. More like covering noise with another noise. : ) )
Well, AFAIK some cars have active noise cancelation. I wonder why we don't have it at homes, after all they are both confined spaces. If general purpose computation and software wouldn't cut it, why we don't have whatever they have in those cars? A lot of money is spent on noise insulation on buildings, so the demand and the money must be there.
Kind of. Not full prerecorded like you'd get in a long audio track, but generators instead with multiple tracks each based on samples. This offers a huge range of customization ability, but also allows the amazing 'animate' feature that allows a constantly changing background.
In the app if you tap where it says 'Default' on a sound you can also choose other preset 'scenes' using the same generators which can be very different - for example the Folk Trad sound set, which has scenes for Breathing Pipe, Calm Blow, Circular Breath, Harmony, Haunting Flutes, Highlander, The Drone and Throat Pipes.