I\'m using the following steps to get the available audio input devices.
async function getConnectedDevices(type) { const devices = await navigator.mediaDev