---
title: "init(analyzerFormat:configurationHandler:)"
framework: speech
role: symbol
role_heading: Initializer
path: "speech/analyzerinputconverter/init(analyzerformat:configurationhandler:)"
---

# init(analyzerFormat:configurationHandler:)

Creates an audio input converter.

## Declaration

```swift
init(analyzerFormat: AVAudioFormat, configurationHandler: ((AVAudioConverter) -> Void)? = nil)
```

## Parameters

- `analyzerFormat`: The audio format to convert the audio samples to. The audio format should be one supported by the speech analyzer’s modules.
- `configurationHandler`: A closure called to customize the instances of AVAudioConverter that this converter creates as needed. The closure takes the following parameter:

## See Also

### Creating a converter

- [converter(compatibleWith:)](speech/analyzerinputconverter/converter(compatiblewith:).md)
