<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Speech",
  "identifier" : "/documentation/Speech/AssetInputSequenceProvider",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "s:6Speech26AssetInputSequenceProviderC"
  },
  "title" : "AssetInputSequenceProvider"
}
-->

# AssetInputSequenceProvider

Reads from an audio file or asset, providing its audio in a format suitable for analysis by a speech analyzer.

```
final class AssetInputSequenceProvider
```

## Topics

### Creating a provider

[`static func provider(from: AVAsset, compatibleWith: [any SpeechModule], priority: TaskPriority?) async throws -> AssetInputSequenceProvider`](/documentation/Speech/AssetInputSequenceProvider/provider(from:compatibleWith:priority:))

Returns an input sequence provider that reads from the first track of an asset or file.

[`static func provider(from: AVAsset, track: AVAssetTrack, compatibleWith: [any SpeechModule], priority: TaskPriority?) async throws -> AssetInputSequenceProvider`](/documentation/Speech/AssetInputSequenceProvider/provider(from:track:compatibleWith:priority:))

Returns an input sequence provider that reads from a track of an asset.

[`init(asset: AVAsset, track: AVAssetTrack, analyzerFormat: AVAudioFormat, priority: TaskPriority?)`](/documentation/Speech/AssetInputSequenceProvider/init(asset:track:analyzerFormat:priority:))

Creates an input sequence provider.

### Obtaining an input sequence

[`var analyzerInputs: some Sendable & AsyncSequence<AnalyzerInput, any Error>`](/documentation/Speech/AssetInputSequenceProvider/analyzerInputs)

A new sequence of speech analyzer input objects containing audio from the asset or file.



---

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)