---
title: SFSpeechError.Code
framework: speech
role: symbol
role_heading: Enumeration
path: speech/sfspeecherror/code
---

# SFSpeechError.Code

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

## Declaration

```swift
enum Code
```

## Topics

### Audio input errors

- [audioDisordered](speech/sfspeecherror/code/audiodisordered.md)
- [SFSpeechError.Code.audioReadFailed](speech/sfspeecherror/code/audioreadfailed.md)

### Audio format errors

- [incompatibleAudioFormats](speech/sfspeecherror/code/incompatibleaudioformats.md)
- [unexpectedAudioFormat](speech/sfspeecherror/code/unexpectedaudioformat.md)

### Asset errors

- [assetLocaleNotAllocated](speech/sfspeecherror/code/assetlocalenotallocated.md)
- [cannotAllocateUnsupportedLocale](speech/sfspeecherror/code/cannotallocateunsupportedlocale.md)
- [noModel](speech/sfspeecherror/code/nomodel.md)
- [SFSpeechError.Code.timeout](speech/sfspeecherror/code/timeout.md)
- [tooManyAssetLocalesAllocated](speech/sfspeecherror/code/toomanyassetlocalesallocated.md)

### Custom language model errors

- [SFSpeechError.Code.malformedSupplementalModel](speech/sfspeecherror/code/malformedsupplementalmodel.md)
- [SFSpeechError.Code.missingParameter](speech/sfspeecherror/code/missingparameter.md)
- [SFSpeechError.Code.undefinedTemplateClassName](speech/sfspeecherror/code/undefinedtemplateclassname.md)

### Other errors

- [insufficientResources](speech/sfspeecherror/code/insufficientresources.md)
- [SFSpeechError.Code.internalServiceError](speech/sfspeecherror/code/internalserviceerror.md)
- [moduleOutputFailed](speech/sfspeecherror/code/moduleoutputfailed.md)

### Initializers

- [init(rawValue:)](speech/sfspeecherror/code/init(rawvalue:).md)

### Type Properties

- [cannotConfigureAudioSystem](speech/sfspeecherror/code/cannotconfigureaudiosystem.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Errors

- [SFSpeechErrorDomain](speech/sfspeecherrordomain.md)
- [SFSpeechError](speech/sfspeecherror.md)
