---
title: "init(named:from:in:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/audiofileresource/init(named:from:in:)"
---

# init(named:from:in:)

Initializes a preconfigured AudioFileResource asynchronously from a Reality Composer Pro project with the given name as the the prim-path of the AudioFile, and the scene as the name of the USD file name.

## Declaration

```swift
@MainActor @preconcurrency convenience init(named name: String, from scene: String, in bundle: Bundle? = nil) async throws
```

## Discussion

Discussion important: The name provided must be unique.

## See Also

### Loading audio from a bundle

- [init(named:in:configuration:)](realitykit/audiofileresource/init(named:in:configuration:).md)
