<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Speech",
  "identifier" : "/documentation/Speech/SFSpeechError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "s:SC17SFSpeechErrorCodeLeV"
  },
  "title" : "SFSpeechError"
}
-->

# SFSpeechError

```
struct SFSpeechError
```

## Topics

### Error domain

[`static var errorDomain: String`](/documentation/Speech/SFSpeechError/errorDomain)

### Error codes

[`enum Code`](/documentation/Speech/SFSpeechError/Code)

Error codes that can be thrown under the Speech framework’s error domain.

### Aliased error codes

[`static var audioReadFailed: SFSpeechError.Code`](/documentation/Speech/SFSpeechError/audioReadFailed)

[`static var internalServiceError: SFSpeechError.Code`](/documentation/Speech/SFSpeechError/internalServiceError)

[`static var malformedSupplementalModel: SFSpeechError.Code`](/documentation/Speech/SFSpeechError/malformedSupplementalModel)

[`static var missingParameter: SFSpeechError.Code`](/documentation/Speech/SFSpeechError/missingParameter)

[`static var timeout: SFSpeechError.Code`](/documentation/Speech/SFSpeechError/timeout)

[`static var undefinedTemplateClassName: SFSpeechError.Code`](/documentation/Speech/SFSpeechError/undefinedTemplateClassName)

## Relationships

### Conforms To

[`Error`](/documentation/Swift/Error)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomNSError`](/documentation/Foundation/CustomNSError)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

---

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)