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

# getSpeakerDevicesWithPermissions

> getSpeakerDevicesWithPermissions function in the WebRTC namespace.

### getSpeakerDevicesWithPermissions

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

Deprecated. Use [getSpeakerDevices](/docs/browser-sdk/v3/js/reference/webrtc/get-speaker-devices) for better cross-browser compatibility.

After prompting the user for permission, returns an array of speaker devices.

#### Returns

`Promise<MediaDeviceInfo[]>`

#### Example

```javascript
await SignalWire.WebRTC.getSpeakerDevicesWithPermissions();
// [
//   {
//     "deviceId": "ADciLf...NYgF8=",
//     "kind": "audiooutput",
//     "label": "External Speaker",
//     "groupId": "rgZgKM...NW1hU="
//   }
// ]
```