在人群区域录制音频时,如何使用 java 消除背景噪音?

发布于 2024-11-27 07:59:00 字数 123 浏览 1 评论 0 原文

当我使用 JavaSound 或第三方声音捕获工具捕获并将其记录到文件中时。然后读回文件进行修改,有什么办法可以用我的java应用程序消除“背景噪音”。

例如主要人物说话时的道路交通/空气噪音?

谢谢

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

淡看悲欢离合 2024-12-04 07:59:00

消除背景噪音非常困难。如果是均匀噪声,例如飞机上的“白”噪声,则有算法可以消除这些频率分量。但是,如果噪声不均匀并且本质上与您的良好录音相似,例如人们在背景中说话、街道噪声等,那么将很难将它们分开。人们对此进行了大量的研究。

至少,您需要确切地知道什么是好的音频,什么是坏的音频。例如,如果您正在捕获语音,则可能有特殊的音频修复软件可用于将语音与其他声音分开,例如 http://www.izotope.com/products/audio/rx/。如果您以立体声录制语音,则可以通过分析语音的左/右位置,然后通过关联左和右来删除非语音成分来成功。

回复:mkb 的评论:

  1. 当(某些或所有频率分量的)电平低于阈值时,噪声门将使音频静音。根据背景噪音的级别,这可能会有所帮助,但噪音门通常很烦人,因为只要存在“良好”的音频,您就会听到背景声,并且中间有寂静。
  2. 低通滤波器消除高频成分(它让低频通过)!因此,如果您的背景噪音频率较高,这可能会有所帮助。简单的 FIR 或 IIR 低通滤波器很容易实现。但如果它具有高频成分,它也会影响您的“良好”音频。

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.
走野 2024-12-04 07:59:00

MARF(模块化音频识别框架)他们的手册(通过使用两阶段:噪声轮廓阶段然后噪声消除阶段,类似于Audacity 的噪声消除)...

...但不幸的是它尚未实现。 :(

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

没︽人懂的悲伤 2024-12-04 07:59:00

一个非常简单的噪声门并不难实现。

A very simple noise gate is not difficult to implement.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文