---
title: error
framework: speech
role: symbol
role_heading: Instance Property
path: speech/sfspeechrecognitiontask/error
---

# error

An error object that specifies the error that occurred during a speech recognition task.

## Declaration

```swift
var error: (any Error)? { get }
```

## Discussion

Discussion The system may return one of the errors listed in the table below.  |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |

## See Also

### Monitoring recognition progress

- [state](speech/sfspeechrecognitiontask/state.md)
- [SFSpeechRecognitionTaskState](speech/sfspeechrecognitiontaskstate.md)
