<!--
{
  "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/SFSpeechRecognitionTask/error",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "c:objc(cs)SFSpeechRecognitionTask(py)error"
  },
  "title" : "error"
}
-->

# error

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

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

## Discussion

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

|Error Code|Error Domain             |Description                                                           |
|----------|-------------------------|----------------------------------------------------------------------|
|`102`     |`kLSRErrorDomain`        |Assets are not installed.                                             |
|`201`     |`kLSRErrorDomain`        |Siri or Dictation is disabled.                                        |
|`300`     |`kLSRErrorDomain`        |Failed to initialize recognizer.                                      |
|`301`     |`kLSRErrorDomain`        |Request was canceled.                                                 |
|`203`     |`kAFAssistantErrorDomain`|Failure occurred during speech recognition.                           |
|`1100`    |`kAFAssistantErrorDomain`|Trying to start recognition while an earlier instance is still active.|
|`1101`    |`kAFAssistantErrorDomain`|Connection to speech process was invalidated.                         |
|`1107`    |`kAFAssistantErrorDomain`|Connection to speech process was interrupted.                         |
|`1110`    |`kAFAssistantErrorDomain`|Failed to recognize any speech.                                       |
|`1700`    |`kAFAssistantErrorDomain`|Request is not authorized.                                            |

---

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)