开发者

How can i remove background noise with java, while recording audio in a crowd zone?

开发者 https://www.devze.com 2023-03-25 14:55 出处:网络
When i capture with JavaSou开发者_如何学运维nd or Third party sound capture tools and record it to a file. Afterwards read the file back to modify it, is there any way to remove the \"background noise

When i capture with JavaSou开发者_如何学运维nd or Third party sound capture tools and record it to a file. Afterwards read the file back to modify it, is there any way to remove the "background noise" with my java application.

Such as road traffic/air noises while main person was talking?

Thanks


Removing background noise is very difficult. If it is uniform noise, such as the "white" noise on an airplane, there are algorithms to remove those frequency components. But if the noise is non-uniform and similar in nature as your good recording, e.g. people talking in the background, street noise, etc. it will be very difficult to separate them. There has been done a lot of research on this.

At the very least, you'll need to know exactly what the good audio is, and what is the bad audio. E.g. if you're capturing voice, there might be special audio repair software available to separate voice from other sounds, e.g. http://www.izotope.com/products/audio/rx/. If you're recording voice in stereo, you may be successful by analyzing the left/right position of the voice, and then removing non-voice components by correlating left and right.

Re: mkb's comments:

  1. a noise gate will mute audio when the level (of some or all frequency components) is below a threshold. Depending on the level of your background noise, this might help, but often a noise gate is annoying because you'll hear the background as long as your "good" audio is there, and there's silence in between.
  2. a low pass filter removes high frequency components (it lets low frequencies pass)! So if your background noise is of high frequency, it might help. A simple FIR or IIR low pass filter is easy to implement. But it will also affect your "good" audio, if it has high frequency components.


MARF (Modular Audio Recognition Framework) mentioned "Noise Removal" in their manual (by using 2-phase: noise profile phase then noise removal phase, similar to Audacity's Noise Removal)...

... but unfortunately it's not yet implemented. :(


A very simple noise gate is not difficult to implement.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号