How I can select which Microphones I use on Android?
Asked Answered
G

1

6

I have an app who are connected with webrtc. I have to had a selected part, where I can select which mic I use.

I already can display the list of mic connected (intern, Bluetooth, ...), I can return some value when I select one of this list. Those values can be name, id type ... For do this, i use getDevices(AudioManager.GET_DEVICES_INPUTS)

So How I can select one of these devices?

Thanks for any help. A link to an example or tutorial can be good!

Gulden answered 18/10, 2019 at 8:57 Comment(0)
H
0

getDevices (AudioManager.GET_DEVICES_INPUTS) returns a list of AudioDeviceInfo instances. Select the one that you need from the list, and pass that instance to an AudioRecord object via a call to setPreferredDevice

Hindermost answered 5/4, 2022 at 10:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.