I am investigating the possibilities of selecting the audio source/microphone for recordings being done on the mobile device. Ideally these can be selected independently from the audio output. A use case would be to play audio to wired headphones, while simultaneously recording audio from the device-internal microphone.
A comparable iOS case would be this.
I believe on Android this might be achievable via setAudioSource() on MediaRecorder. An alternative might be setPreferredDevice() with AudioRecord.
However, I am not sure this is the right path...
Does anybody have experience in achieving this on Android or Flutter, respectively?
Thanks!