I'd like to create a higher tech noise cancellation machine (possibly with added white noise) for a room to reduce the sound of snoring from the next room over. I was thinking that by placing a mic, running it through the appropriate hardware and filters within a computer, and then spitting it out a speaker, I might be able to achieve some noise cancelling similar to my bose in-ear noise cancelling headphones.
The two challenges that come to mind are feedback and making the output sound waves 180 degrees out of phase from the incoming mic audio before coming out the speaker. Is this possible? If so, what hardware would includes these sorts of filters in their included software?