provider(from:compatibleWith:priority:)
Returns an input sequence provider that reads from the first track of an asset or file.
Declaration
static func provider(from asset: AVAsset, compatibleWith modules: [any SpeechModule], priority: TaskPriority? = nil) async throws -> AssetInputSequenceProviderParameters
- 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
An instance of this class.