> ## Documentation Index
> Fetch the complete documentation index at: https://developer.suki.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# micIsInUse on Mobile SDK

> Free the microphone when another app holds it and Mobile SDK cannot record

`micIsInUse` is a `SukiAmbientCoreError` case. Another app is using the microphone, so Mobile SDK cannot start or resume recording.

| Error id | Description |
| :- | :- |
| `micIsInUse` | Another app is using the microphone. Cannot start or resume recording |
| `needMicrophonePermissionRecording` | Microphone permission has not been granted |
| `unableToStartRecording` | Audio engine setup failed (no inputs, `AVAudioSession` error, and similar) |

## Catch and recover

Match the case name in your `SukiAmbientCoreError` handler:

```swift Swift theme={"theme":{"light":"github-dark","dark":"material-theme-darker"}}
do {
  // Mobile SDK call that starts or resumes recording
} catch let error as SukiAmbientCoreError {
  switch error {
  case .micIsInUse:
    // Ask the clinician to end the other app's audio activity, then retry
    break
  case .appIsNotActive:
    // Bring the app to the foreground, then retry
    break
  case .needMicrophonePermissionRecording:
    // Request microphone permission, then retry
    break
  default:
    break
  }
}
```

## Fix

<Steps>
  <Step title="Catch micIsInUse">
    Handle `micIsInUse` in your error UI with a clear message and a retry path.
  </Step>

  <Step title="Free the Microphone">
    Ask the clinician to end the other app's audio (for example a phone call or another app holding the mic), then retry start or resume.
  </Step>

  <Step title="Check Permission and Engine Errors">
    If the error is `needMicrophonePermissionRecording`, request permission first. If it is `unableToStartRecording`, inspect audio engine and `AVAudioSession` setup. See [Mobile SDK error messages](/mobile-sdk/error-messages).
  </Step>
</Steps>

## Next steps

<Icon icon="file-lines" iconType="solid" /> **[Mobile SDK error messages](/mobile-sdk/error-messages)** - Recording and microphone error ids

<Icon icon="file-lines" iconType="solid" /> **[appIsNotActive when starting Mobile SDK recording](/documentation/troubleshooting/app-is-not-active-mobile)** - Background start blocked on iOS

<Icon icon="file-lines" iconType="solid" /> **[Mobile SDK troubleshooting FAQs](/mobile-sdk/faqs/troubleshooting)** - Common Mobile SDK issues

<Icon icon="file-lines" iconType="solid" /> **[Microphone permission denied](/documentation/troubleshooting/microphone-permission-denied)** - Browser mic permission failures

<Icon icon="file-lines" iconType="solid" /> **[Offline upload failures on Mobile SDK](/documentation/troubleshooting/offline-upload-failures-mobile)** - Offline sync and upload events
