简体   繁体   中英

Frequency filter on audio played by AudioTrack in Android?

I am receiving audio via Bluetooth and also playing it live. I have achieved this by AudioTrack class in Android studio. I used the equalizer class in Android but it cuts the frequency of certain bands only. Eg it only cuts 460-1800 hz on the phone that I am testing. But I want to cut 500hz-1500hz as a bandpass filter does. I have been stuck on this problem for quite a few days now.

I know its possible because I have seen it in other apps eg. Stemoscope

At least point me in some direction. I tried to use TarsosDSP but I can't get any good resources on that and when I used it the output was corrupted and I wasn't able to fix it. I can't seem to find any other library. I can share the code if anyone interested.

Ended up using TarsosDSP only. Was unable to find other better libraries than that

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM