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

# audioOutputDeviceUniqueID

Specifies the unique ID of the Core Audio output device used to play audio.

```
nonisolated var audioOutputDeviceUniqueID: String? { get set }
```

## Discussion

The default value of this property is `nil`, indicating that the default audio output device is used. Otherwise the value of this property is a string containing the unique ID of the Core Audio output device to be used for audio output.

Core Audio’s <doc://com.apple.documentation/documentation/CoreAudio/kAudioDevicePropertyDeviceUID> is a suitable source of audio output device unique IDs.

---

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)