java的音频过滤器 [英] java audio frequency filter

查看:738
本文介绍了java的音频过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Java中的简单的音频播放。唯一的高级功能,我需要的是一个频率滤波器。它不一定是一个全功能的均衡器功能,具有特定的频率范围不同的增益:其中切割速度比规定值高频率的低通滤波器就足够了。

I'm developing a simple audio player in java. The only advanced feature I need is a frequency filter. It's not necessarily a full-featured equalizer function, with different gains for specific frequency ranges: a low pass filter which cuts frequencies higher than a specified value would be enough.

我研究 jlGui 其中有一个均衡器,但它仅与MP3数据的作品,而我扮演的文件OGG。

I studied jlGui which has an equalizer, but it only works with MP3 data, while the files I will be playing are OGG.

通过不同的答案,浏览我发现,ffmpeg的包装如 Xuggler 或的 java的可能是一个解决方案。但我没有发现任何教程,甚至没有就如何处理频率滤波ffmpeg的一个起点。

Browsing through various answers I found that an ffmpeg wrapper like Xuggler or Jave could be a solution. But I didn't find any tutorial, not even a starting point on how to handle frequency filtering with ffmpeg.

另外JMF被描述为实现这样的功能有效的选择,但我发现没有什么不够具体。

Also JMF is described as a valid choice for implementing such a function, but I found nothing specific enough.

推荐答案

我结束了使用此解决方案(用于Windows应用程序)的均衡器APO

I'm ending up using this solution (for windows applications) : Equalizer APO

它利用了在Windows Vista及更高版本的音频处理对象的技术。我的应用程序只需要编辑一个配置文本文件和APO没有休息。

It makes use of the Audio Processing Object technology available on Windows Vista and later. My application just needs to edit a configuration text file and the APO does the rest.

显然,它是依赖于平台的,我必须安装过滤器我工作的外部应用程序,但它是在我的情况可以接受的,这是很容易实现的。

Obviously, it is platform dependent, and I must install an external application for my filter to work, but it is acceptable in my case, and it is very easy to implement.

这篇关于java的音频过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆