<!--
{
  "availability" : [
    "watchOS: 2.0.0 - 6.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKAudioFileAsset/init(url:title:albumTitle:artist:)-447fg",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKAudioFileAsset(cm)assetWithURL:title:albumTitle:artist:"
  },
  "title" : "init(url:title:albumTitle:artist:)"
}
-->

# init(url:title:albumTitle:artist:)

Returns an audio file asset and sets the metadata for that item.

```
convenience init(url URL: URL, title: String?, albumTitle: String?, artist: String?)
```

## Parameters

`URL`

A file-based URL that identifies the audio file. This URL must refer to a shared location that can be accessed by both the Watch app interface and the WatchKit extension. For more information, see [Sharing Data](https://developer.apple.com/library/archive/documentation/General/Conceptual/WatchKitProgrammingGuide/SharingData.html#//apple_ref/doc/uid/TP40014969-CH29) in [App Programming Guide for watchOS](https://developer.apple.com/library/archive/documentation/General/Conceptual/WatchKitProgrammingGuide/index.html#//apple_ref/doc/uid/TP40014969).

    This parameter must not be     `nil`    .

`title`

The title to use for the audio file asset. Specify `nil` to use the title information from the file’s metadata. If you specify `nil` and no title is found in the metadata, the title is set to the file’s name.

`albumTitle`

The album title to use for the audio file asset. Specify `nil` to use the album title information from the file’s metadata.

`artist`

The artist to use for the audio file asset. Specify `nil` to use the artist information from the file’s metadata.

## Return Value

An initialized asset object.

---

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)