<!--
{
  "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/AsyncBuffers",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components",
      "CreateMLComponents"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents11AudioReaderV12AsyncBuffersV"
  },
  "title" : "AudioReader.AsyncBuffers"
}
-->

# AudioReader.AsyncBuffers

An async sequence of audio buffers read from an audio file.

```
struct AsyncBuffers
```

## Overview

This sequence allows iterating through the file only once.

## Topics

### Getting the count

[`let count: Int?`](/documentation/CreateMLComponents/AudioReader/AsyncBuffers/count)

The number of audio buffers in the file.

### Getting the url

[`let url: URL`](/documentation/CreateMLComponents/AudioReader/AsyncBuffers/url)

The audio file URL, used when throwing an error.

### Creating an iterator

[`func makeAsyncIterator() -> AudioReader.AsyncBuffers.Iterator`](/documentation/CreateMLComponents/AudioReader/AsyncBuffers/makeAsyncIterator())

Constructs an iterator.

[`struct Iterator`](/documentation/CreateMLComponents/AudioReader/AsyncBuffers/Iterator)

An async iterator of audio buffers.

## Relationships

### Conforms To

[`AsyncSequence`](/documentation/Swift/AsyncSequence)

[`TemporalSequence`](/documentation/CreateMLComponents/TemporalSequence)

---

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)