All pages

argus-echo

argus-echo 0.3.1.dev32+ga618c66 @ a618c66PyPI (opens in new tab)Source (opens in new tab)Changelog (opens in new tab)

Imported from README.md on argus-echo's dev branch at that commit. Fixes go upstream, not here.

The Argus suite's speech servers: three text-to-speech engines behind one HTTP contract, so a client switches engine by changing a URL, and a speech-to-text engine:

EngineModelVRAMStrengths
xttsCoqui XTTS-v2 (opens in new tab)~2 GBThe suite's cloning engine: multi-clip cloning, 58 built-in speakers, 17 languages, low-latency streaming. Weights non-commercial (CPML)
misoMiso TTS 8B (opens in new tab)~17 GBMost natural and expressive, English only; one-shot cloning, but no built-in voices
qwenQwen3-TTS (opens in new tab) 0.6B / 1.7BsmallBuilt-in speakers, steered by an instruction or a voice description (1.7B)
whisperWhisper large-v3-turbo (opens in new tab) (faster-whisper)~3 GBSpeech to text: 99 languages, word timestamps, live streaming with VAD

Clone voices on XTTS. It's the suite's one cloning engine (argus-echo#51): it has the most built-in speakers, takes several reference clips, speaks 17 languages and fits an 8 GB card. Clones and fine-tunes (argus-forge) go through it. Miso stays an English-only option where quality matters most, and Qwen offers its built-in speakers. The caveat: XTTS-v2's weights are non-commercial (Coqui Public Model Licence), so its clones and fine-tunes are too; Qwen3-TTS (Apache-2.0) is the fallback if that ever matters.

Plus Wyoming bridges that put any engine, text to speech or speech to text, in front of Home Assistant or anything else that speaks Wyoming (opens in new tab).

Every engine loads its model on first use, unloads it when idle, and serves argus-cortex's resident contract (/health, /admin/{unload,evict,wake}), so argus-iris (opens in new tab) can share a GPU between them and other services. argus-mask (opens in new tab) uses them to give its faces a voice.

Part of the Argus suite (opens in new tab).

Run

Linux, Docker with Compose, an NVIDIA GPU and the NVIDIA Container Toolkit (opens in new tab). Each engine is a Compose profile; run the ones your GPU can hold:

cp .env.example .env                                         # bind address, token, storage
docker compose --profile miso up -d --build                  # 24 GB card
docker compose --profile xtts --profile qwen up -d --build   # 8 GB card

With no profile compose answers no service selected. To stop typing them, name this host's engines once in .env (COMPOSE_PROFILES=xtts,qwen), after which docker compose up -d works, or use the Makefile:

make launch ENGINES="xtts qwen"   # start them; ENGINES wins over COMPOSE_PROFILES for that command
make rebuild                      # build the images from this checkout, then start; uses COMPOSE_PROFILES
make status                       # every argus-echo container
make logs                         # follow the chosen engines' logs
make stop                         # stop and remove them all

To share the GPU through argus-iris (opens in new tab), set ARGUS_GPU_BROKER_URL (and ARGUS_GPU_BROKER_TOKEN if the broker has one) next to ARGUS_ADMIN_TOKEN in .env. That is all: each engine registers gpu-tenant.yaml (opens in new tab) at startup, and iris places each resident on the node whose agent reports its container, calling its /admin/* routes with the admin token the engine sent. Every engine registered with one broker must share one ARGUS_ADMIN_TOKEN. Unset, nothing registers; a broker that is down never stops an engine starting.

Values every Argus service on a host shares (the broker URL and token, ARGUS_ADMIN_TOKEN, HF_TOKEN, the S3_* credentials) can be written once in the suite settings file, ~/.config/argus/suite.env (mode 600; python -m argus_cortex.settings --init creates it), instead of in each repo's .env. Each engine reads it at startup for whatever its own environment leaves unset or empty, so a value in .env still wins. Under Compose, add compose.suite.yaml (opens in new tab) to mount the file read-only at /etc/argus/suite.env (COMPOSE_FILE=compose.yaml:compose.suite.yaml in .env); it is a separate file because a host without a suite file could not start with the mount in place. One limit today (argus-cortex#218 (opens in new tab)): the engines run as root, and the file is read only when root owns it, so the mounted file must be root-owned; one owned by your own user is ignored with a warning.

Each engine container carries the suite's discovery labels (argus.peer, argus.service, argus.health, argus.port), which argus-iris's agents read to list the suite's services. The peer names, which are what callers ask for (ARGUS_<PEER>_URL), are miso, xtts, tts (Qwen) and whisper.

Ports: Miso 8140, XTTS 8141, Qwen 8142, Whisper 8144; Wyoming bridges 10240 (XTTS), 10241 (Miso), 10242 (Qwen) and 10243 (Whisper), see Home Assistant. They are published on ECHO_BIND, which defaults to 127.0.0.1; set it to 0.0.0.0 or a LAN address to serve other machines. Miso downloads its ~33 GB checkpoint into HF_HOME on first use; the XTTS and Qwen images bake their weights in at build time.

Check an engine (read-only; --speak also streams a sentence, which loads the model):

uvx argus-echo check http://localhost:8140
uvx argus-echo check http://localhost:8141 --speak "Hello there." --speaker "Claribel Dervla"
uvx argus-echo check http://localhost:8144 --transcribe       # speech to text: a bundled 11 s clip

Or by hand:

curl -s localhost:8140/synthesise/stream -H 'content-type: application/json' \
     -d '{"text": "Hello there."}' --output hello.f32       # 24 kHz mono float32

Storage

Generated WAVs and clones go to S3 (MinIO or any S3-compatible store): set S3_ENDPOINT_URL and the credentials in .env. Each engine has its own bucket (voice-miso, voice-xtts, voice-qwen by default), because all three store clones under the same keys in different formats. Create the buckets before first use. Miso can store on local disk instead (MISO_STORAGE_BACKEND=local, the default) and serves those files itself.

Security

/admin/* is closed until ARGUS_ADMIN_TOKEN is set (openssl rand -hex 32). Every other route is open, clone creation and deletion included: keep the ports on a trusted network or behind an authenticating gateway. Clone a real person's voice only with their consent. Details: docs/api.md#security.

Documentation

DocContents
docs/api.mdThe shared contract, how the engines differ, health, admin, security
docs/miso-api.md, docs/miso-config.mdMiso's full API and every MISO_* setting
docs/xtts.mdXTTS-v2 settings and licence
docs/qwen.mdQwen3-TTS settings and differences
docs/whisper.mdSpeech to text: model choice, licences, VRAM, settings
docs/new-engine.mdChecklist for adding an engine (server, image, tests, wiring)
docs/voice-cloning.mdWhat makes a good reference on each engine; Home Assistant

Layout

compose.yaml          one profile per engine
gpu-tenant.yaml       the residents argus-iris manages
engines/<engine>/     each engine's server, Dockerfile and tests (its own Python environment)
src/argus_echo/       the contracts in Python (contract/tts.py, contract/stt.py), and `argus-echo check`

The engines don't import argus_echo: their dependencies conflict (Miso pins torch 2.9 for moshi), so they share the contract, not code.

Develop

make install && make test && make lint      # the argus_echo package

Each engine's tests run in its own environment, with the models stubbed (no GPU or weights). The commands are in .github/workflows/engines.yml (opens in new tab), for example:

cd engines/xtts && uv run --no-project --python 3.11 --with-requirements requirements-test.txt python -m pytest -q tests

Licence

MIT, see LICENSE (opens in new tab), except engines/miso/ (opens in new tab), which carries the upstream MisoTTS inference code under Miso Labs' modified MIT licence (engines/miso/LICENSE (opens in new tab)). Model weights carry their own licences: Miso TTS (modified MIT), XTTS-v2 (Coqui Public Model Licence, non-commercial), Qwen3-TTS (Apache-2.0). Audio from Miso's /synthesise carries an imperceptible AI-generated watermark; streamed audio does not.