音频滤波机器人 [英] audio Filtering android

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

问题描述

有没有办法来筛选Android系统的音频?
我有兴趣只得到一个固定频率的声音。

is there a way to filter audio in android system? I am interested to get only the audio of a fixed frequency.

推荐答案

戴维说,该AudioRecord类是最简单的方法。很多时候,我将扩大,实现AudioRecord一个的AsyncTask读取音频缓冲器和推缓冲器返回到UI线程用于可视化(如果需要)。

As Dave says, the AudioRecord class is the easiest way. Often times, I will extend an AsyncTask that implements AudioRecord to read the audio buffer and push the buffer back to the UI thread for visualization (if needed).

关于音频的过滤,机器人不提供这样做的任何内置方式。您会过滤掉特定的频率的方法是通过服用傅立叶变换的采样音频,然后拉出感兴趣的频率。

Regarding the filtering of the audio, Android does not provide any built-in way of doing this. The way you would filter out certain frequencies is by taking the Fourier Transform of the sampled audio and then pulling out the frequencies of interest.

如果您想对筛选的更多详细信息,你应该张贴新的SO问题或维基快速傅立叶变换(FFT)。你也可以考虑 JTransforms 这是一个奇妙的运行在Android上一个伟大的开源FFT库。

If you want more details on filtering, you should probably post a new SO question or wiki the Fast Fourier Transform (FFT). You might also look into JTransforms which is a great open source FFT library that runs wonderfully on Android.

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

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