> 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. # selectAudioInputDevice > Sets the preferred audio input device. ```ts selectAudioInputDevice(device): void ``` Sets the preferred audio input device. ## **Parameters** **`device`** `MediaDeviceInfo | null` — required 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. > Sets the preferred audio input device.