One Logo Pool Ball
Speech · IOS API REFERENCE

AssetInputSequenceProvider

class · iOS 27.0+ · SDK 27.1

final class AssetInputSequenceProvider

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

Members (4)

get · iOS 27.0+

analyzerInputs

TypeScript
get analyzerInputs(): (SDKHandle) & (SDKHandle)
Swift declaration
final var analyzerInputs: some Sendable & AsyncSequence<AnalyzerInput, any Error> { get }

A new sequence of speech analyzer input objects containing audio from the asset or file. The sequence includes the entire asset track's or file's audio. You may release the provider object after obtaining the sequence.

init · iOS 27.0+

init

TypeScript
static init(asset: _AVFoundation_AVAsset, track: _AVFoundation_AVAssetTrack, analyzerFormat: _AVFAudio_AVAudioFormat, priority?: (SDKHandle) | null): AssetInputSequenceProvider
Swift declaration
init(asset: AVAsset, track: AVAssetTrack, analyzerFormat: AVAudioFormat, priority: TaskPriority? = nil)

Creates an input sequence provider. - Parameters: - asset: The asset to read from. - track: The track to read audio samples from. - analyzerFormat: The audio format to convert the audio samples to. The audio format should be one supported by the speech analyzer's modules. - priority: The desired priority of the asset-reading task.

static · iOS 27.0+

provider

TypeScript
static providerFromCompatibleWithPriority(asset: _AVFoundation_AVAsset, modules: Array<SDKHandle>, priority?: (SDKHandle) | null): Promise<AssetInputSequenceProvider>
Swift declaration
static func provider(from asset: AVAsset, compatibleWith modules: [any SpeechModule], priority: TaskPriority? = nil) async throws -> AssetInputSequenceProvider

Returns an input sequence provider that reads from the first track of an asset or file. - 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. - Returns: An instance of this class.

static · iOS 27.0+

provider

TypeScript
static providerFromTrackCompatibleWithPriority(asset: _AVFoundation_AVAsset, track: _AVFoundation_AVAssetTrack, modules: Array<SDKHandle>, priority?: (SDKHandle) | null): Promise<AssetInputSequenceProvider>
Swift declaration
static func provider(from asset: AVAsset, track: AVAssetTrack, compatibleWith modules: [any SpeechModule], priority: TaskPriority? = nil) async throws -> AssetInputSequenceProvider

Returns an input sequence provider that reads from a track of an asset. - 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. - Returns: An instance of this class.

Skipped declarations

No declarations were skipped in this snapshot.

All Speech types →