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

# selectAudioInputDevice

> Sets the preferred audio input device.

```ts
selectAudioInputDevice(device): void
```

Sets the preferred audio input device.

## **Parameters**

Device to select. Pass `null` to clear the current selection. See [`MediaDeviceInfo`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo).

## **Returns**

`void`

## **Examples**

```ts
client.selectAudioInputDevice(device);
```

## **See**

* [`audioInputDevices$`](/docs/browser-sdk/v4/reference/signalwire/audio-input-devices\$) — list of available microphones.
* [`selectedAudioInputDevice$`](/docs/browser-sdk/v4/reference/signalwire/selected-audio-input-device\$) — reactive state of the currently selected device.
* [`deviceRecovered$`](/docs/browser-sdk/v4/reference/signalwire/device-recovered\$) — emits when the SDK auto-switches on hardware change.