<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Speech",
  "identifier" : "/documentation/Speech/CaptureInputSequenceProvider/init(session:analyzerFormat:priority:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "s:6Speech28CaptureInputSequenceProviderC7session14analyzerFormat8priorityACSo16AVCaptureSessionC_So07AVAudioH0CScPSgtKcfc"
  },
  "title" : "init(session:analyzerFormat:priority:)"
}
-->

# init(session:analyzerFormat:priority:)

Creates an input sequence provider.

```
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`](/documentation/Speech/CaptureInputSequenceProvider/captureAudioDataOutput) property to access the output object and add it to your session.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)