---
title: "read(_:configuration:)"
framework: createmlcomponents
role: symbol
role_heading: Type Method
path: "createmlcomponents/audioreader/read(_:configuration:)"
---

# read(_:configuration:)

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

## Declaration

```swift
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

Return Value An array of annotated async sequences.

## See Also

### Reading audio

- [read(contentsOf:configuration:)](createmlcomponents/audioreader/read(contentsof:configuration:).md)
- [readMicrophone(configuration:)](createmlcomponents/audioreader/readmicrophone(configuration:).md)
