<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MusicUnderstanding",
  "identifier" : "/documentation/MusicUnderstanding/MusicUnderstandingSession/init(asset:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Music Understanding"
    ],
    "preciseIdentifier" : "s:18MusicUnderstanding0aB7SessionC5assetACs8Sendable_So7AVAssetCXc_tYaKcfc"
  },
  "title" : "init(asset:)"
}
-->

# init(asset:)

Creates a music understanding session from an audio asset.

```
convenience init(asset: any AVAsset & Sendable) async throws
```

## Parameters

`asset`

An `AVAsset` containing an audio track.

## Discussion

Use this initializer when your audio source is an `AVAsset` rather than a streaming sequence of audio buffers.

> Throws:
> If the asset is unreadable, does not contain valid audio tracks, or cannot be processed for analysis.

> Note:
> This initializer doesn’t support HTTP livestreams (HLS). The asset must represent locally available media or a complete file.

---

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)