---
title: defaultInputDevice
framework: Core Audio
role: symbol
role_heading: Instance Property
platforms: [macOS 15.0+]
path: coreaudio/audiohardwaresystem/defaultinputdevice
---

# defaultInputDevice

The default input audio device on the system, or nil if there is no default input device.

## Declaration

```swift
var defaultInputDevice: AudioHardwareDevice? { get throws }
```
