Identify external and internal audio devices?
I am aware that when we connect external audio device(bluetooth/wired earphones) then this device would act as the default microphone and speaker. But, in my web application, when I connect external microphone, this microphone is not behaving as the default device. This might be happening, since I sometimes also connect bluetooth device and also I connect my system to the TV.
Is there a proper way to identify which are external devices and which are internal devices. So that I can prioritise external microphone.