英文:
Frequency filter on audio played by AudioTrack in Android?
问题
我正在通过蓝牙接收音频,并进行实时播放。我是通过Android Studio中的AudioTrack类实现的这一功能。我在Android中使用了均衡器(equalizer)类,但它只削减了特定频段的频率。例如,在我测试的手机上,它只削减了460-1800赫兹的范围。但我希望像带通滤波器一样削减500赫兹到1500赫兹之间的范围。我已经为这个问题困扰了好几天。
我知道这是可能的,因为我在其他应用程序中看到过,例如 Stemoscope。
至少指点我一些方向。我尝试过使用TarsosDSP,但我找不到任何好的资源,而且当我使用它时,输出声音损坏了,我无法修复。我似乎找不到其他任何库。如果有人感兴趣,我可以分享代码。
英文:
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.
答案1
得分: 0
Ended up using TarsosDSP only. Was unable to find other better libraries than that.
英文:
Ended up using TarsosDSP only. Was unable to find other better libraries than that
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论