<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "c:objc(pl)SFSpeechRecognitionTaskDelegate"
  },
  "title" : "SFSpeechRecognitionTaskDelegate"
}
-->

# SFSpeechRecognitionTaskDelegate

A protocol with methods for managing multi-utterance speech recognition requests.

```
protocol SFSpeechRecognitionTaskDelegate : NSObjectProtocol
```

## Overview

The methods of this protocol give you fine-grained control over the speech recognition process. Specifically, you use this protocol when you want to know the following:

- When the first utterances of speech occur in the audio.
- When the speech recognizer stops accepting audio.
- When the speech recognition process finishes or is canceled.
- When the speech recognizer generates a potential transcription.

Adopt the methods of this protocol in an object and pass that object in to the `delegate` parameter of [`recognitionTask(with:delegate:)`](/documentation/Speech/SFSpeechRecognizer/recognitionTask(with:delegate:)) when starting your speech recognition task.

## Topics

### Tracking task progress

[`speechRecognitionDidDetectSpeech(_:)`](/documentation/Speech/SFSpeechRecognitionTaskDelegate/speechRecognitionDidDetectSpeech(_:))

Tells the delegate when the task first detects speech in the source audio.

[`speechRecognitionTaskFinishedReadingAudio(_:)`](/documentation/Speech/SFSpeechRecognitionTaskDelegate/speechRecognitionTaskFinishedReadingAudio(_:))

Tells the delegate when the task is no longer accepting new audio input, even if final processing is in progress.

### Getting transcriptions

[`speechRecognitionTask(_:didHypothesizeTranscription:)`](/documentation/Speech/SFSpeechRecognitionTaskDelegate/speechRecognitionTask(_:didHypothesizeTranscription:))

Tells the delegate that a hypothesized transcription is available.

### Finishing a speech recognition task

[`speechRecognitionTask(_:didFinishRecognition:)`](/documentation/Speech/SFSpeechRecognitionTaskDelegate/speechRecognitionTask(_:didFinishRecognition:))

Tells the delegate when the final utterance is recognized.

[`speechRecognitionTask(_:didFinishSuccessfully:)`](/documentation/Speech/SFSpeechRecognitionTaskDelegate/speechRecognitionTask(_:didFinishSuccessfully:))

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

[`speechRecognitionTask(_:didProcessAudioDuration:)`](/documentation/Speech/SFSpeechRecognitionTaskDelegate/speechRecognitionTask(_:didProcessAudioDuration:))

Tells the delegate how much audio has been processed by the task.

[`speechRecognitionTaskWasCancelled(_:)`](/documentation/Speech/SFSpeechRecognitionTaskDelegate/speechRecognitionTaskWasCancelled(_:))

Tells the delegate that the task has been canceled.



---

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)