---
title: microphone
framework: avfoundation
role: symbol
role_heading: Type Property
path: avfoundation/avcapturedevice/devicetype-swift.struct/microphone
---

# microphone

A microphone device type.

## Declaration

```swift
static let microphone: AVCaptureDevice.DeviceType
```

## Discussion

Discussion In iOS and tvOS, the system only exposes one capture device of this type. The audio routing subsystem decides which physical microphone to use, be it a built-in microphone, a wired headset, or an external microphone. The microphone device’s localizedName changes as the audio subsystem switches to a different physical device.

## See Also

### Microphones

- [builtInMicrophone](avfoundation/avcapturedevice/devicetype-swift.struct/builtinmicrophone.md)
