MicSelector

@Composable
fun MicSelector(selected: AudioDeviceInfo?, onSelect: (AudioDeviceInfo?) -> Unit, modifier: Modifier = Modifier)(source)

Pick the microphone (AI Elements <MicSelector>): lists the system's input devices — built-in, wired, Bluetooth, USB — and updates as they are plugged in. null means the system default. Apply the choice with e.g. AudioRecord.setPreferredDevice.