---
title: "finalizeAndFinish(through:)"
framework: speech
role: symbol
role_heading: Instance Method
path: "speech/speechanalyzer/finalizeandfinish(through:)"
---

# finalizeAndFinish(through:)

Finishes analysis after finalizing results for a given time-code.

## Declaration

```swift
final func finalizeAndFinish(through: CMTime) async throws
```

## Parameters

- `through`: A time-code of the last audio sample that you want to analyze.

## Discussion

Discussion This method finalizes like finalize(through:) and finishes analysis like finish(after:). note: Various errors including CancellationError if analysis is finished early before the given input time.

## See Also

### Finishing analysis

- [cancelAndFinishNow()](speech/speechanalyzer/cancelandfinishnow().md)
- [finalizeAndFinishThroughEndOfInput()](speech/speechanalyzer/finalizeandfinishthroughendofinput().md)
- [finish(after:)](speech/speechanalyzer/finish(after:).md)
