AUDIO
Listen to this page
Chapters
Getting started
One script installs a fully running instance on any OS. It then doubles as
manager and doctor (./setup.sh / ./setup.ps1, modes below).
Quick install
# Linux / macOS — one entry point
bash <(curl -fsSL https://raw.githubusercontent.com/holai-org/holai/main/setup.sh)
# — or after cloning: ./setup.sh
# Windows
iwr https://raw.githubusercontent.com/holai-org/holai/main/setup.ps1 -OutFile setup.ps1; ./setup.ps1
The script asks:
- Source — clones the holai repository into the chosen directory when run standalone (git; falls back to a GitHub zipball without git).
- Docker — checks the engine; when missing offers to install it right from the script (Linux: distro package manager or get.docker.com; macOS/Windows: Docker Desktop via brew/winget or download page, then waits).
- Voice models — which Piper voices to have in the instance (multi-select
from a numbered preset list; default English) →
PIPER_VOICESin.env. - Speech recognition — the faster-whisper model size (tiny to medium) →
WHISPER_MODEL. - Pre-built plugins — all disabled by default; the script lists what can
be installed in a fixed order (1 esphome, 2 google_docs, 3 cameras) and
enables the chosen ones (sequence selection like
1 2). - ESPHome compiling — asked only when esphome was selected; default is
the web UI (flashing through web.esphome.io, nothing extra downloaded),
the local compile service (~+2 GB, compose
flashprofile) is explicitly opted in. When cameras is selected, thecamerasprofile is offered the same way. - Admin password — generate a strong one (default), keep
admin/admin, or type one.
It then writes .env (JWT_SECRET random, PORT, PIPER_VOICES,
WHISPER_MODEL), runs docker compose up -d --build (+ chosen profiles),
waits for the core to answer, applies the plugin selection and password, and
finally prints — and opens — the admin URI http://localhost:<port>/admin.
Voice models
Chosen voices are downloaded automatically at the first TTS container start
(persistent in ai-models/piper/). Additional voices are downloaded by hand
from https://huggingface.co/rhasspy/piper-voices — for a voice put BOTH
files, <voice>.onnx and <voice>.onnx.json, into ai-models/piper/. The
file name without the .onnx extension is a PIPER_VOICES entry in .env
(comma-separated for several; the first is the default voice of the instance).
Installer modes
The script decides by itself what to do (or accepts the mode as an argument:
setup | manage | doctor).
- Not installed →
setup(the question walk-through above). Afterwards the summary points to the same script for management and health checking. - Instance detected (a repo
.envor a running core container) → menu:manageordoctor.manage— currently one function: download a new voice model. The chosen voices are appended toPIPER_VOICESin.env, the TTS container is recreated (downloads missing voices at start) and the script waits for every file to appear inai-models/piper/. Manual model adding (huggingface files → same dir) stays possible at any time.doctor— PASS/WARN/FAIL table: docker engine, sources present,.envsanity (JWT_SECRETfar from the compose default,PIPER_VOICES/WHISPER_MODELset), per-voice file presence inai-models/piper/, core/stt/tts containers running, optional esphome/cameras-worker profiles, and the core HTTP answer. Exits non-zero on FAILs so CI/supervisors can hook it up.
Hardware auto-tuning (GPU / edge NPU / model size)
The installer detects the machine during setup and tunes the speech stack:
- GPU detect —
nvidia-smipresent (Windows/Linux) → the CUDA Speaches image is used (STT_IMAGE=…:latest-cudain.env) and the optionaldocker-compose.gpu.ymloverride (GPU reservations for stt, ollama, cameras-worker) is attached viaCOMPOSE_FILE=…in.env. Docker Desktop exposes thenvidiaruntime out of the box; Linux needs the NVIDIA Container Toolkit. Piper TTS stays on CPU — it is audio-dsp sized, GPU would add nothing. - Whisper model by hardware (the installer shows a suggestion + default):
GPU VRAM ≥ 10 GB →
large-v3; GPU VRAM ≥ 4 GB →medium; CPU with ≥ 8 GB RAM →small; ≥ 4 GB RAM →base; elsetiny. The answer language is not affected (see agent-and-language — medium and larger keep the multilingual accuracy). - Edge devices — an optional Google Coral USB TPU (cameras YOLO) is
detected by USB id on Linux and offered as a hint
(
CAMERAS_MODEL=…_edgetpu.tflite+ thedevices:block in the compose camera service); the user installs it explicitly. The GPU file never enables edge devices itself. - doctor verifies the pairing: a
cudaSTT image without thenvidiadocker runtime is a WARN with a one-line fix (switchSTT_IMAGEback tolatest-cpu). - Re-running the installer on the same instance only changes these settings when the mode explicitly says so (repair may propose to fix a mismatch, setup questions never silently rewrite picked values).
Verification of a running install: open http://localhost:8080/admin
(default admin/admin — change it!) and check the Overview health cards.
See also dashboard.
First run notes
- Docker downloads the base images and builds the core (a few minutes).
- The first voice request triggers a one-time STT model download (~500 MB into a Docker volume) — the first transcription is slow, later ones are fast.
- Voices are downloaded to
./ai-models/piper/(persisted on the host). - Change the admin password immediately (Users screen) and set a real
JWT_SECRET— the defaults exist only for a quick first look.
Configuration (.env next to docker-compose.yml)
JWT_SECRET=long-random-string-of-your-choosing # default: dev value — CHANGE FOR REAL USE
PIPER_VOICES=en_US-lessac-medium de_DE-thorsten-medium # space-separated; first = default
A predefined dev variant exists too: docker compose --env-file .env.dev up -d --build.
Useful env variables further tunable via docker-compose.yml mappings:
| Variable | Meaning / default |
|---|---|
STT_URL / TTS_URL / TTS_TTS_PATH |
where the core finds the speech containers |
STT_MODEL |
faster-whisper model id (Systran/faster-whisper-small) |
STT_DETECT_LANGUAGE |
false disables per-recording language auto-detection |
NPM_REGISTRY |
npm registry mirror for the marketplace |
TOOL_TIMEOUT_MS |
tool execution timeout |
ESPHOME_CMD |
command of a local esphome CLI (or start the flash profile — plugins/esphome) |
Where is my data?
| Path / volume | Contents |
|---|---|
Docker volume core-data (/app/data) |
response audio, per-plugin data dirs |
SQLite holai.db (data dir / DB_PATH) |
users, settings, env variables, plugin enable/disable + lock, audit log, home identity |
./server/plugins/ (host bind) |
installed + marketplace plugins, .versions/ |
./ai-models/piper/ (host) |
Piper voice models (see PIPER_VOICES) |
Docker volume stt-cache |
downloaded whisper model |
Back up core-data + ./server/plugins/ and you can move the installation
anywhere. The state model itself is described in
architecture.
Last updated: November 2026