---
title: "provider(from:compatibleWith:priority:)"
framework: speech
role: symbol
role_heading: Type Method
path: "speech/assetinputsequenceprovider/provider(from:compatiblewith:priority:)"
---

# provider(from:compatibleWith:priority:)

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

## Declaration

```swift
static func provider(from asset: AVAsset, compatibleWith modules: [any SpeechModule], priority: TaskPriority? = nil) async throws -> AssetInputSequenceProvider
```

## Parameters

- `asset`: The asset to read from.
- `modules`: The speech modules that will analyze the audio.
- `priority`: The desired priority of the asset-reading task.

## Return Value

Return Value An instance of this class.

## See Also

### Creating a provider

- [provider(from:track:compatibleWith:priority:)](speech/assetinputsequenceprovider/provider(from:track:compatiblewith:priority:).md)
- [init(asset:track:analyzerFormat:priority:)](speech/assetinputsequenceprovider/init(asset:track:analyzerformat:priority:).md)
