# Air-gapped AI

> Running speech recognition, the language model and speech synthesis inside your own install, so that no call audio, transcript or prompt leaves it: what is possible today, what is in development, and how to plan for it.

An [on-prem install](https://docs.morevoice.ai/enterprise/on-prem/) keeps your data in your environment, but by default its AI still runs at cloud vendors: speech recognition, the language model and speech synthesis are calls to their APIs (see [AI providers and data](https://docs.morevoice.ai/enterprise/ai-providers/)). An **air-gapped** install runs those three inside your environment too, on your GPUs, so that no call audio, transcript or prompt leaves it.

> **A project, not a switch**
>
> Self-hosted AI for Hebrew calls is in development. Open models for Hebrew speech, language and voice are improving fast, but their quality and speed on real calls must be measured before anything is promised. We run it as a funded project with you: a bake-off on your own calls, then a decision.

## How it works

The install talks to three servers of yours through the same interfaces it uses for cloud vendors, so the rest of MoreVoice (calls, flows, queues, the copilot, QA) doesn't change:

| Step | Runs on | Notes |
| --- | --- | --- |
| Speech recognition | A streaming server for a Hebrew fine-tune of Whisper | Whisper isn't a streaming model: a wrapper detects speech and decodes as the caller talks. |
| Language model | An open-weight model served with an OpenAI-compatible API (for example vLLM) | Tool calls, flows and the copilot use it as they use a cloud model. |
| Speech synthesis | A text-to-speech server that streams audio | Hebrew voices are the hardest part to match. |

A switch then makes any other AI egress impossible: in the app, and in the network policy of the [Helm chart](https://docs.morevoice.ai/enterprise/on-prem/#network) or your firewall.

| Setting | What it does |
| --- | --- |
| `AIRGAP=1` | no call to any cloud AI vendor |
| `SELFHOSTED_LLM_BASE_URL` | an OpenAI-compatible server (vLLM: `http://llm:8000/v1`) |
| `SELFHOSTED_LLM_MODEL` | the served model name (vLLM `--served-model-name`) |
| `SELFHOSTED_LLM_API_KEY` | optional bearer (vLLM `--api-key`), secret |
| `WHISPER_WS_URL` | the streaming STT server (faster-whisper behind a WebSocket wrapper: `ws://stt:9090`) |
| `WHISPER_MODEL` | the model it loads (an ivrit.ai Hebrew fine-tune converted for CTranslate2) |
| `SELFHOSTED_TTS_URL`, `SELFHOSTED_TTS_VOICE` | the TTS server (HTTP, PCM16 stream) and its voice |
| `SELFHOSTED_REGION` | where the GPUs run, as a C3 region code (il \| eu); default from REGION |

## Today

Without the self-hosted stack, an isolated site can still keep its AI traffic narrow and accountable: allow outbound HTTPS only to the AI vendors' API addresses, turn off breached-password lookups (`HIBP_ENABLED=0`), and load the images from the offline release bundle. The [licence check](https://docs.morevoice.ai/enterprise/licence/) never needs the network.
