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

3

9

When i capture with JavaSound 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

Hallucinatory answered 2/8, 2011 at 18:29 Comment(0)
G
5

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.
Giles answered 9/8, 2011 at 10:20 Comment(0)
V
1

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. :(

Venery answered 6/3, 2015 at 17:27 Comment(0)
K
0

A very simple noise gate is not difficult to implement.

Kirsten answered 2/8, 2011 at 18:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.