---
title: "init(session:analyzerFormat:priority:)"
framework: speech
role: symbol
role_heading: Initializer
path: "speech/captureinputsequenceprovider/init(session:analyzerformat:priority:)"
---

# init(session:analyzerFormat:priority:)

Creates an input sequence provider.

## Declaration

```swift
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

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

- [providerWithSession(from:compatibleWith:priority:)](speech/captureinputsequenceprovider/providerwithsession(from:compatiblewith:priority:).md)
- [provider(from:in:compatibleWith:priority:)](speech/captureinputsequenceprovider/provider(from:in:compatiblewith:priority:).md)
