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