---
title: finish()
framework: speech
role: symbol
role_heading: Instance Method
path: speech/sfspeechrecognitiontask/finish()
---

# finish()

Stops accepting new audio and finishes processing on the audio input that has already been accepted.

## Declaration

```swift
func finish()
```

## Discussion

Discussion For audio buffer–based recognition, recognition does not finish until this method is called, so be sure to call it when the audio source is exhausted.

## See Also

### Finishing a speech recognition task

- [isFinishing](speech/sfspeechrecognitiontask/isfinishing.md)
