> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# getMicrophoneDevices

> getMicrophoneDevices function in the WebRTC namespace.

### getMicrophoneDevices

* `Const` **getMicrophoneDevices**(): `Promise<MediaDeviceInfo[]>` — See [MediaDeviceInfo](https://developer.mozilla.org/en-US/docs/Web/API/mediadeviceinfo) for more details.

Returns an array of microphone devices that can be accessed on this device (for which we have permissions).

#### Returns

`Promise<MediaDeviceInfo[]>`

#### Example

```javascript
await SignalWire.WebRTC.getMicrophoneDevices();
// [
//   {
//     "deviceId": "ADciLf...NYgF8=",
//     "kind": "audioinput",
//     "label": "Internal Microphone",
//     "groupId": "rgZgKM...NW1hU="
//   }
// ]
```