<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/AudioReader/read(_:configuration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents11AudioReaderV4read_13configurationSayAA16AnnotatedFeatureVyAC12AsyncBuffersVq_GGx_AC13ConfigurationVtKSTRzSQR_s8SendableR_AGy10Foundation3URLVq_G7ElementRtzr0_lFZ::OverloadGroup"
  },
  "title" : "read(_:configuration:)"
}
-->

# read(_:configuration:)

Reads a sequence of annotated files as a lazy sequence of results each containing an audio buffers or an error.

```
static func read<S, Annotation>(_ annotatedFiles: S, configuration: AudioReader.Configuration = .init()) throws -> [AnnotatedFeature<AudioReader.AsyncBuffers, Annotation>] where S : Sequence, Annotation : Equatable, Annotation : Sendable, S.Element == AnnotatedFeature<URL, Annotation>
```

## Parameters

`annotatedFiles`

A sequence of annotated URLs.

`configuration`

The configuration for reading buffers.

## Return Value

An array of annotated async sequences.

---

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)