---
title: "speechRecognitionTask(_:didFinishSuccessfully:)"
framework: speech
role: symbol
role_heading: Instance Method
path: "speech/sfspeechrecognitiontaskdelegate/speechrecognitiontask(_:didfinishsuccessfully:)"
---

# speechRecognitionTask(_:didFinishSuccessfully:)

Tells the delegate when the recognition of all requested utterances is finished.

## Declaration

```swift
optional func speechRecognitionTask(_ task: SFSpeechRecognitionTask, didFinishSuccessfully successfully: Bool)
```

## Parameters

- `task`: The speech recognition task (an doc://com.apple.speech/documentation/Speech/SFSpeechRecognitionTask object) that represents the request.
- `successfully`: A Boolean value that indicates whether the task was successful. When this parameter is false, use the doc://com.apple.speech/documentation/Speech/SFSpeechRecognitionTask/error property of the task to get information about why the task was unsuccessful.

## See Also

### Finishing a speech recognition task

- [speechRecognitionTask(_:didFinishRecognition:)](speech/sfspeechrecognitiontaskdelegate/speechrecognitiontask(_:didfinishrecognition:).md)
- [speechRecognitionTask(_:didProcessAudioDuration:)](speech/sfspeechrecognitiontaskdelegate/speechrecognitiontask(_:didprocessaudioduration:).md)
- [speechRecognitionTaskWasCancelled(_:)](speech/sfspeechrecognitiontaskdelegate/speechrecognitiontaskwascancelled(_:).md)
