> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # getMicrophoneDevicesWithPermissions > getMicrophoneDevicesWithPermissions function in the WebRTC namespace. ### getMicrophoneDevicesWithPermissions * `Const` **getMicrophoneDevicesWithPermissions**(): `Promise` — See [MediaDeviceInfo](https://developer.mozilla.org/en-US/docs/Web/API/mediadeviceinfo) for more details. > **Warning** > > Deprecated. Use [getMicrophoneDevices](/docs/browser-sdk/v3/js/reference/webrtc/get-microphone-devices) for better cross-browser compatibility. After prompting the user for permission, returns an array of microphone devices. #### Returns `Promise` #### Example ```javascript await SignalWire.WebRTC.getMicrophoneDevicesWithPermissions(); // [ // { // "deviceId": "ADciLf...NYgF8=", // "kind": "audioinput", // "label": "Internal Microphone", // "groupId": "rgZgKM...NW1hU=" // } // ] ``` > getMicrophoneDevicesWithPermissions function in the WebRTC namespace.