Recording audio from external source in an android application

痞子三分冷 提交于 2019-12-09 06:41:26

Is the external mic detected as a wired headset? If not, I don't think this is going to work. There's no such audio device as a "wired external microphone" in vanilla Android.

If it is detected as a wired headset it should be working out of the box if you use the MIC or DEFAULT AudioSource when recording. If it doesn't I'd say that's a flaw in the version of Android that you've got on your phone.

In my testing of USB Audio products, the MIC, DEFAULT, and VOICE_COMMUNICATION sources all switch to a USB Audio mic if it's connected. The CAMCORDER source always uses the built-in mic. I can't find any clear documentation of this, though. This page doesn't mention external/USB audio at all.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!