<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSpeechSynthesizer/SpeechPropertyKey/errors",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSSpeechErrorsProperty"
  },
  "title" : "errors"
}
-->

# errors

Get speech-error information for the synthesizer.

```
static let errors: NSSpeechSynthesizer.SpeechPropertyKey
```

## Discussion

A dictionary object that contains speech-error information. See [`NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey`](/documentation/AppKit/NSSpeechSynthesizer/SpeechPropertyKey/ErrorKey) for a description of the keys present in the dictionary.

This property lets you get information about various run-time errors that occur during speaking, such as the detection of badly formed embedded commands. Errors returned directly by the Speech Synthesis Manager are not reported here.

If your application implements the [`speechSynthesizer(_:didEncounterErrorAt:of:message:)`](/documentation/AppKit/NSSpeechSynthesizerDelegate/speechSynthesizer(_:didEncounterErrorAt:of:message:)) delegate message, the delegate message can use this property to get error information.

This property is used with [`setObject(_:forProperty:)`](/documentation/AppKit/NSSpeechSynthesizer/setObject(_:forProperty:)).

---

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)