<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Speech",
  "identifier" : "/documentation/Speech/SpeechAnalyzer/init(inputSequence:modules:options:analysisContext:volatileRangeChangedHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "s:6Speech0A8AnalyzerC13inputSequence7modules7options15analysisContext27volatileRangeChangedHandlerACx_SayAA0A6Module_pGAC7OptionsVSgAA08AnalysisH0CySo06CMTimeJ0a_S2btcSgntcs8SendableRzSciRzAA0B5InputV7ElementRtzlufc"
  },
  "title" : "init(inputSequence:modules:options:analysisContext:volatileRangeChangedHandler:)"
}
-->

# init(inputSequence:modules:options:analysisContext:volatileRangeChangedHandler:)

Creates an analyzer and begins analysis.

```
convenience init<InputSequence>(inputSequence: InputSequence, modules: [any SpeechModule], options: SpeechAnalyzer.Options? = nil, analysisContext: AnalysisContext = .init(), volatileRangeChangedHandler: sending ((CMTimeRange, Bool, Bool) -> Void)? = nil) where InputSequence : Sendable, InputSequence : AsyncSequence, InputSequence.Element == AnalyzerInput
```

## Parameters

`inputSequence`

An asynchronous sequence of audio inputs to analyze. Analysis will begin when the first audio input is added to the sequence.

`modules`

An initial list of modules that will analyze the audio.

`options`

A structure specifying analysis options.

`analysisContext`

An object containing contextual information to improve or inform the analysis.

`volatileRangeChangedHandler`

A closure called to report the analysis’ progress. The closure takes the following parameters:

- range: The current volatile range.
- changedStart: If `true`, the volatile range contains an updated start time. This indicates that prior results have been finalized.
- changedEnd: If `true`, the volatile range contains an update end time. This indicates that analysis of that time has started.

---

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)