<!--
{
  "availability" : [
    "watchOS: 2.0.0 - 6.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKAudioFileAsset",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKAudioFileAsset"
  },
  "title" : "WKAudioFileAsset"
}
-->

# WKAudioFileAsset

An object that stores a reference to an audio file and provides metadata information about that file.

```
class WKAudioFileAsset
```

## Overview

You create assets when you want to play audio from your watchOS app. Use the audio file asset object to store the location of the file and any Now Playing information you want displayed while the audio is playing.

Audio assets must refer to files on the local file system. If you have audio files that are stored on a server, you must download them to the user’s Apple Watch before attempting to play them using an audio file asset object.

It is recommended that you encode audio files using 32 kbps stereo AAC. You may use other bit rates, or the LPCM encoding, as preferred for your content.

To play an audio file asset, wrap it in a [`WKAudioFilePlayerItem`](/documentation/WatchKit/WKAudioFilePlayerItem) object. The player item object stores information about the playback status of the asset and works with a [`WKAudioFilePlayer`](/documentation/WatchKit/WKAudioFilePlayer) object to coordinate playback. If you want to queue several audio files for playback, you manage those items using a [`WKAudioFileQueuePlayer`](/documentation/WatchKit/WKAudioFileQueuePlayer) object.

## Topics

### Creating an Asset

[`init(url:)`](/documentation/WatchKit/WKAudioFileAsset/init(url:)-8ndda)

Returns an asset for the audio file at the specified URL.

[`init(url:title:albumTitle:artist:)`](/documentation/WatchKit/WKAudioFileAsset/init(url:title:albumTitle:artist:)-447fg)

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

### Getting the Asset’s Properties

[`url`](/documentation/WatchKit/WKAudioFileAsset/url)

The URL of the audio file.

[`duration`](/documentation/WatchKit/WKAudioFileAsset/duration)

The duration (in seconds) of the audio file.

[`title`](/documentation/WatchKit/WKAudioFileAsset/title)

The title information for the audio file.

[`albumTitle`](/documentation/WatchKit/WKAudioFileAsset/albumTitle)

The album title information for the audio file.

[`artist`](/documentation/WatchKit/WKAudioFileAsset/artist)

The artist information for the audio 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)