---
title: "activateAudioTrack(with:expectedValues:expectedValueInterval:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclustermediaplayback/activateaudiotrack(with:expectedvalues:expectedvalueinterval:completion:)"
---

# activateAudioTrack(with:expectedValues:expectedValueInterval:completion:)

## Declaration

```swift
func activateAudioTrack(with params: MTRMediaPlaybackClusterActivateAudioTrackParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func activateAudioTrack(with params: MTRMediaPlaybackClusterActivateAudioTrackParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
