<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureAudioPreviewOutput/outputDeviceUniqueID",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureAudioPreviewOutput(py)outputDeviceUniqueID"
  },
  "title" : "outputDeviceUniqueID"
}
-->

# outputDeviceUniqueID

The unique identifier of the Core Audio output device to use for audio preview.

```
var outputDeviceUniqueID: String? { get set }
```

## Discussion

Set the value to the unique identifier of the audio output device, or `nil` to use default system output.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)