<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 10.0.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Speech",
  "identifier" : "/documentation/Speech/SFSpeechRecognitionTaskDelegate/speechRecognitionTask(_:didFinishSuccessfully:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "c:objc(pl)SFSpeechRecognitionTaskDelegate(im)speechRecognitionTask:didFinishSuccessfully:"
  },
  "title" : "speechRecognitionTask(_:didFinishSuccessfully:)"
}
-->

# speechRecognitionTask(_:didFinishSuccessfully:)

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

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

## Parameters

`task`

The speech recognition task (an [`SFSpeechRecognitionTask`](/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 [`error`](/documentation/Speech/SFSpeechRecognitionTask/error) property of the task to get information about why the task was unsuccessful.

---

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)