Contents

init(session:analyzerFormat:priority:)

Creates an input sequence provider.

Declaration

init(session: AVCaptureSession, analyzerFormat: AVAudioFormat, priority: TaskPriority?) throws

Parameters

  • session:

    The capture session that manages the audio capture operation.

  • 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 audio-capture task.

Discussion

This initializer also creates an AVCaptureAudioDataOutput object suitable for adding to the given AVCaptureSession. It does not reconfigure or alter the session.

Use the captureAudioDataOutput property to access the output object and add it to your session.

See Also

Creating a provider