# RealtimeVoiceErrorCode
Source: https://docs.maelstrom-ai.co/0.2/reference/realtime/type-aliases/realtimevoiceerrorcode/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

> **RealtimeVoiceErrorCode** = `"MIC_PERMISSION_DENIED"` | `"TOKEN_MINT_FAILED"` | `"CONNECTION_FAILED"` | `"DATA_CHANNEL_ERROR"` | `"ALREADY_CONNECTED"` | `"CONNECT_SUPERSEDED"` | `"GREETING_ADAPTER_UNSUPPORTED"`

Defined in: packages/realtime/src/lib/realtime-voice-error.ts:12

Programmatic causes for realtime voice failures. UIs switch on these to show actionable recovery guidance (e.g. mic-permission help vs. key setup).

Every code names a **fatal** condition: a code exists only for failures that warrant raising a [RealtimeVoiceError](https://docs.maelstrom-ai.co/0.2/reference/realtime/classes/realtimevoiceerror/), which by contract tears the session down. Non-fatal failures carry no code — see the severity contract on [RealtimeVoiceError](https://docs.maelstrom-ai.co/0.2/reference/realtime/classes/realtimevoiceerror/).
