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

# init(analyzerFormat:configurationHandler:)

Creates an audio input converter.

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

- audioConverter: A newly-created instance of `AVAudioConverter`.

---

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)