本人在做音频感知相关的项目,只想利用手机底部的扬声器对目标物进行感知,但是播放一个音频时,Android会默认使用双扬声器发生,导致我难以提取通过底部扬声器感知的声音,目前查阅到的资料表明AudioManager可以控制音频设备,但是没找到对应的方法来控制某一个扬声器发声,只能设置仅顶部的扬声器发声,但不能设置仅底部的扬声器发声,是安卓没有提供这样的接口吗?
I'm working on audio perception projects. I just want to use the bottom (major) speaker of the mobile phone to perceive the target object. However, when playing an audio, Android will default to using two speakers, which makes it difficult for me to extract the sound sensed through the bottom speaker. The current data show that AudioManager can control the audio device, But there is no corresponding way to control the sound of a certain speaker. Only the top speaker can be set, but not the bottom speaker. Is Android not providing such an interface?
可以修改mixerpath.xml文件中的speaker通路,删除听筒的配置