---
title: "speechRecognitionDidDetectSpeech(_:)"
framework: speech
role: symbol
role_heading: Instance Method
path: "speech/sfspeechrecognitiontaskdelegate/speechrecognitiondiddetectspeech(_:)"
---

# speechRecognitionDidDetectSpeech(_:)

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

## Declaration

```swift
optional func speechRecognitionDidDetectSpeech(_ task: SFSpeechRecognitionTask)
```

## Parameters

- `task`: The speech recognition task (an doc://com.apple.speech/documentation/Speech/SFSpeechRecognitionTask object) that represents the request.

## See Also

### Tracking task progress

- [speechRecognitionTaskFinishedReadingAudio(_:)](speech/sfspeechrecognitiontaskdelegate/speechrecognitiontaskfinishedreadingaudio(_:).md)
