Contents

provider(from:track:compatibleWith:priority:)

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

Declaration

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

Parameters

  • asset:

    The asset to read from.

  • track:

    The track 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.

See Also

Creating a provider