<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/AudioReaderError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents16AudioReaderErrorO"
  },
  "title" : "AudioReaderError"
}
-->

# AudioReaderError

Audio reader errors.

```
enum AudioReaderError
```

## Topics

### Analyzing the error

[`case microphoneAuthorizationDenied`](/documentation/CreateMLComponents/AudioReaderError/microphoneAuthorizationDenied)

An error that indicates that the microphone authorization status is denied.
The user has explicitly denied permission for audio capture.

[`case microphoneAuthorizationRestricted`](/documentation/CreateMLComponents/AudioReaderError/microphoneAuthorizationRestricted)

An error that indicates that the microphone authorization status is restricted.
The user is not allowed to access audio capture devices.

[`case sourceDeviceNotAvailable`](/documentation/CreateMLComponents/AudioReaderError/sourceDeviceNotAvailable)

An error that indicates that no source devices are available.

### Getting the debug description

[`var debugDescription: String`](/documentation/CreateMLComponents/AudioReaderError/debugDescription)

A text representation of the error.

### Default Implementations

[CustomDebugStringConvertible Implementations](/documentation/CreateMLComponents/AudioReaderError/CustomDebugStringConvertible-Implementations)

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

[`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)