小新百香果 2021-06-27 12:24 采纳率: 0%
浏览 114

Android如何关闭双扬声器,仅使底部的扬声器发声,听筒处的扬声器不发声?

本人在做音频感知相关的项目,只想利用手机底部的扬声器对目标物进行感知,但是播放一个音频时,Android会默认使用双扬声器发生,导致我难以提取通过底部扬声器感知的声音,目前查阅到的资料表明AudioManager可以控制音频设备,但是没找到对应的方法来控制某一个扬声器发声,只能设置仅顶部的扬声器发声,但不能设置仅底部的扬声器发声,是安卓没有提供这样的接口吗?

  • 写回答

2条回答 默认 最新

  • 小新百香果 2021-06-28 13:09
    关注

    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?

    评论

报告相同问题?

悬赏问题

  • ¥15 STM32多路复用器ADC采样
  • ¥20 Linux(ubuntu)操作相关问题
  • ¥15 python深度学习代码求跑
  • ¥100 对接美团闪购医药接口相关问题
  • ¥15 嵌入式软件电子烟开发
  • ¥15 职场 Excel 查重问题
  • ¥15 求怎么用idea2021.3.2创建web项目并配置tomcat
  • ¥100 or-tools的相关问题
  • ¥15 有可能用平板通过拓展坞来烧录程序吗(keil5的那种)
  • ¥15 状态图的并发态问题咨询