---
title: "init(url:)"
framework: avkit
role: symbol
role_heading: Initializer
path: "avkit/avcaptureeventsound/init(url:)-2a6o4"
---

# init(url:)

Creates a sound object for a capture event.

## Declaration

```swift
init(url: URL) throws
```

## Parameters

- `url`: A URL within the app’s bundle for a custom capture sound.
