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

# getSpeakerDevices

> getSpeakerDevices function in the WebRTC namespace.

### getSpeakerDevices

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

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

#### Returns

`Promise<MediaDeviceInfo[]>`

#### Example

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