---
title: "setDefaultInputDevice(_:)"
framework: Core Audio
role: symbol
role_heading: Instance Method
platforms: [macOS 15.0+]
path: "coreaudio/audiohardwaresystem/setdefaultinputdevice(_:)"
---

# setDefaultInputDevice(_:)

Set the defaultInputDevice property.

## Declaration

```swift
func setDefaultInputDevice(_ device: AudioHardwareDevice) throws
```

## Parameters

- `device`: An AudioHardwareDevice to use as the default input audio device
