---
title: dataSourceID
framework: avfaudio
role: symbol
role_heading: Instance Property
path: avfaudio/avaudiosessiondatasourcedescription/datasourceid
---

# dataSourceID

The system-assigned identifier for the data source.

## Declaration

```swift
var dataSourceID: NSNumber { get }
```

## Discussion

Discussion You can use the value of this property to assign a specific data source to some input or output within an audio session.

## See Also

### Identifying a Data Source

- [dataSourceName](avfaudio/avaudiosessiondatasourcedescription/datasourcename.md)
