---
title: audioOutputDeviceUniqueID
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avplayer/audiooutputdeviceuniqueid
---

# audioOutputDeviceUniqueID

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

## Declaration

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

## Discussion

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 kAudioDevicePropertyDeviceUID is a suitable source of audio output device unique IDs.

## See Also

### Configuring audio and video devices

- [preferredVideoDecoderGPURegistryID](avfoundation/avplayer/preferredvideodecodergpuregistryid.md)
