init(analyzerFormat:configurationHandler:)
Creates an audio input converter.
Declaration
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
AVAudioConverterthat this converter creates as needed. The closure takes the following parameter:- audioConverter
A newly-created instance of
AVAudioConverter.