<!--
{
  "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/finalizeAndFinishThroughEndOfInput()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "s:6Speech0A8AnalyzerC34finalizeAndFinishThroughEndOfInputyyYaKF"
  },
  "title" : "finalizeAndFinishThroughEndOfInput()"
}
-->

# finalizeAndFinishThroughEndOfInput()

Finishes analysis after an audio input sequence has been terminated and fully consumed and the modules’ results are finalized.

```
final func finalizeAndFinishThroughEndOfInput() async throws
```

## Discussion

This method waits until the input sequence has been terminated and fully consumed, then finalizes like [`finalize(through:)`](/documentation/Speech/SpeechAnalyzer/finalize(through:)) and finishes analysis like [`finish(after:)`](/documentation/Speech/SpeechAnalyzer/finish(after:)).

If there is no input sequence, this method waits until there is an input sequence and the sequence terminates. If the input sequence is replaced using one of the `start` methods, this method continues waiting for the replacement input sequence to terminate.

This method is primarily useful for autonomous analysis started via one of the `start` methods or a similar initializer.

> Throws: `CancellationError` if analysis is finished early before the end of input

---

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)