---
title: "start(inputAudioFile:finishAfterFile:)"
framework: speech
role: symbol
role_heading: Instance Method
path: "speech/speechanalyzer/start(inputaudiofile:finishafterfile:)"
---

# start(inputAudioFile:finishAfterFile:)

Starts analysis of an input sequence created from an audio file and returns immediately.

## Declaration

```swift
final func start(inputAudioFile audioFile: AVAudioFile, finishAfterFile: Bool = false) async throws
```

## Parameters

- `audioFile`: An AVAudioFile opened for reading.
- `finishAfterFile`: If true, the analysis will automatically finish after the audio file has been fully processed. Equivalent to calling doc://com.apple.speech/documentation/Speech/SpeechAnalyzer/finalizeAndFinishThroughEndOfInput().

## Discussion

Discussion This method stops the autonomous analysis of the previous input sequence. Any audio that hasn’t been consumed will be ignored but audio that has been consumed will continue to be analyzed. To ensure the previous sequence’s input is fully consumed, call finalize(through:) first.

## See Also

### Performing autonomous analysis

- [start(inputSequence:)](speech/speechanalyzer/start(inputsequence:).md)
