For AI coding agents
Install and use Unidatum Speech from Claude Code and other agents
One command, no sudo, no browser. Say "Install Unidatum Speech from speech.unidatum.com and verify it works" and your agent can do it end to end. This page is also available as plain markdown, with the whole site in llms.txt.
You are an AI coding agent (Claude Code, Codex, Cursor, Aider or similar) and a person asked you to install or use Unidatum Speech. This page is the whole procedure. Plain markdown copy: https://speech.unidatum.com/agents.md
Unidatum Speech is a self-hosted speech service that runs on CPU only: live speech to text with partial results and punctuated finals in about a second, recorded-file transcription, and text to speech. It speaks a Deepgram-compatible API (/v1/listen, /v1/speak), so Deepgram client code needs only a different base URL and key. It is free to use under the Unidatum Speech Free Use Licence (https://speech.unidatum.com/licence/); installing means accepting it, so tell the person you are installing it.
Install it (one command, no sudo, no browser)
curl -fsSL https://speech.unidatum.com/install.sh | sh -s -- --agent
--agent is the supported automation route. The human download page asks a person to pass a Cloudflare Turnstile check, which an agent cannot do; with --agent the installer instead asks the site for a proof-of-work challenge, solves it itself (about a second of hashing with perl, python3 or node), and exchanges the answer for a single-use install code. Everything after that is the same as for a person: the package is verified against its published SHA-256 before anything is unpacked.
Before you run it:
- Look first if you like:
curl -fsSL https://speech.unidatum.com/install.sh | sh -s -- --agent --dry-rundownloads and writes nothing and shows the plan. The script is plain POSIX shell, readable at https://speech.unidatum.com/install.sh. - It takes 3 to 6 minutes (about 1 GB of speech models are downloaded and hash-checked). A command timeout of 2 minutes will kill it. Run it in the background and poll its log:
curl -fsSL https://speech.unidatum.com/install.sh -o /tmp/unidatum-speech-install.sh
nohup sh /tmp/unidatum-speech-install.sh --agent > "$HOME/unidatum-speech-install.log" 2>&1 &
# then, every 20 seconds or so, until it ends with "Done." (or an error line):
tail -n 5 "$HOME/unidatum-speech-install.log"
In Claude Code, the Bash tool's run_in_background or a timeout of 600000 ms does the same.
- What it needs: Linux x86_64, Linux arm64 or macOS on Apple silicon;
curl,tar,bzip2(Linux; it unpacks the models; without it the installer uses python3's bz2 module instead),sha256sum(orshasum); at least 6 cpus (it uses about half the machine, at most 8, and refuses to run on fewer than 3 of its own), 4 to 8 GB of free memory depending on the cores (the installer prints the figure for this machine and warns when it is short) and about 2 GB of disk. On Linux it needsuv(the Python package manager). If the installer stops becauseuvis missing, install it for the person in their home folder, no sudo, then run the installer again:curl -LsSf https://astral.sh/uv/install.sh | shorpython3 -m pip install --user uv. The proof of work needs perl (with Digest::SHA), python3 or node; any developer machine has one. - No sudo, ever. It writes only under
~/.local/share/unidatum-speech(Linux;~/unidatum-speechon macOS),~/.config/unidatum-speechand~/.config/systemd/user. If something asks for sudo, stop and tell the person.
What the installer does, in order: asks the site for the agent challenge and solves it; reads the current release; verifies the package SHA-256 against two published lists; unpacks it under the home folder; writes a configuration for this machine's cores; writes an API key to ~/.config/unidatum-speech/env (mode 600; the key is never printed, only the path); installs a systemd user unit (launchd agent on macOS) and starts it; waits up to 3 minutes for /health to answer 200. The service listens on 127.0.0.1:18790 only.
Exit codes: 0 done, 1 failed (the message says why), 2 bad usage, 75 try again later (see the ceilings below).
If the install is refused: ceilings and the honest alternative
The agent route has hourly ceilings, because it proves effort, not a person: 40 installs an hour for the whole site and 10 an hour per country (the counters reset on the clock hour). Several machines in one country share that country's 10. When a ceiling is reached the installer exits 75 and prints something like:
The agent route is at its hourly ceiling (scope: country). Nothing was installed.
Retry-After: 1075 seconds (the ceilings reset on the clock hour).
The same answer over HTTP is 429 with a Retry-After header and a JSON body {"error", "scope", "retry_after", "alternative"}. What to do:
- Wait the
Retry-Afterseconds and run the same command once more. Do not loop faster than that; every attempt that gets as far as a ticket uses up a slot, including one that later fails. - Or, at once: ask the person to open https://speech.unidatum.com/download in a browser, pass the check there, and paste you the install command shown with its code (
curl -fsSL https://speech.unidatum.com/install.sh | sh -s -- --code XXXX-XXXX; the code works once and lasts fifteen minutes). Run it as given.
Do not try to get around the check in any other way, and do not retry in a tight loop.
Verify it works
The workers need about a minute after start to load the models; /health answers 503 until then. Replace nothing; the key stays in its file and is read into a variable, never printed:
curl -fsS http://127.0.0.1:18790/health # {"ok":true,...} once ready (the installer already waited for it)
KEY=$(sed -n 's/^UNIDATUM_SPEECH_KEYS=//p' ~/.config/unidatum-speech/env | cut -d, -f1)
curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1:18790/v1/projects # 401: the key is required
curl -s -o /dev/null -w '%{http_code}\n' -H "Authorization: Token $KEY" http://127.0.0.1:18790/v1/projects # 200: the key works
# text to speech, then speech to text on what it said:
curl -fsS -H "Authorization: Token $KEY" -H 'Content-Type: application/json' -d '{"text":"The installer works end to end."}' \
'http://127.0.0.1:18790/v1/speak?model=aura-2-thalia-en&encoding=linear16&sample_rate=24000&container=wav' -o /tmp/unidatum-speech-check.wav
curl -fsS -H "Authorization: Token $KEY" -H 'Content-Type: audio/wav' --data-binary @/tmp/unidatum-speech-check.wav \
'http://127.0.0.1:18790/v1/listen?language=en&smart_format=true'
# the transcript is in results.channels[0].alternatives[0].transcript and should read "The installer works end to end."
Report to the person: the version installed, that /health is 200, that the key file exists (give its path, not its contents), and the round-trip transcript.
Use it
- Transcribe a recorded file (wav, flac, ogg or mp3 bytes; no URLs):
curl -fsS -H "Authorization: Token $KEY" -H 'Content-Type: audio/wav' --data-binary @clip.wav 'http://127.0.0.1:18790/v1/listen?language=en&smart_format=true'. For other formats convert first, e.g.ffmpeg -i in.m4a -ar 16000 -ac 1 clip.wav. English uses Parakeet v3; other language codes use Whisper small. - Speak a sentence:
POST /v1/speak?model=aura-2-thalia-en&encoding=linear16&sample_rate=24000&container=wavwith{"text": "..."}(at most 5000 characters) returns a WAV; play it withaplay,paplay,afplayorffplayif the machine has speakers. The Deepgram-shaped body andmodelnames are accepted; the voice behind them is Kokoro. - Live transcription is a WebSocket on
/v1/listenwith raw 16 kHz mono 16-bit PCM in about 100 ms frames,endpointing=350; the full guide with tested Python, Node and Go clients is https://speech.unidatum.com/docs.md and the Claude Code skill below. - Base URL and key for a project:
UNIDATUM_SPEECH_URL=http://127.0.0.1:18790, andUNIDATUM_SPEECH_KEYread from~/.config/unidatum-speech/env(the lineUNIDATUM_SPEECH_KEYS=..., first key) or copied by the person into the project's own mode-600 key file. Never hardcode the key, print it, log it, commit it, or put it in a URL. Keep the service on loopback; do not bind a public address. - PowerConduit (the voice assistant): put
VCCD_ARGS=-unidatum-speech http://127.0.0.1:18790in~/.config/voicecommandcontrol/env, write the key (mode 600) to~/.config/voicecommandcontrol/unidatum-speech-key, restartvccd, and choose "Unidatum" under Settings, Speech recognition.
Start, stop, status, uninstall
systemctl --user status unidatum-speech # Linux: also start | stop | restart
journalctl --user -u unidatum-speech -n 50 # logs
launchctl print gui/$(id -u)/com.unidatum.speech # macOS status
With no systemd user session (a container, for example) the installer does not start the service; it prints the command. Run it in the background: set -a; . ~/.config/unidatum-speech/env; set +a; nohup ~/.local/share/unidatum-speech/bin/unidatum-speech -config ~/.config/unidatum-speech/config.toml > ~/unidatum-speech.log 2>&1 &.
Uninstall (stops the service, removes the install; the config folder with the key is kept unless --purge):
curl -fsSL https://speech.unidatum.com/install.sh | sh -s -- --uninstall --yes # add --purge to remove the key file too
Install the Claude Code skill
So that every future session knows how to install, start, verify and wire the service, put the skill in the person's skills folder (one file, no sudo):
curl -fsSL https://speech.unidatum.com/skill/SKILL.md --create-dirs -o ~/.claude/skills/unidatum-speech/SKILL.md
For other agents, https://speech.unidatum.com/llms-full.txt is this page plus the API guide in one file.
Rules for agents
- Tell the person what you are about to install (about 2 GB under their home folder, a background service using about half the cores, loopback only) and that the licence applies.
- No sudo. No keys in output, logs, URLs or commits. No invented hosts or keys.
- Do not load-test the service you just installed for the person without asking; it is theirs.
- The installs are counted, anonymously, under the client label "agent" (route, version, package, country as Cloudflare reports it, time; no address or identity); see https://speech.unidatum.com/privacy/.
- If the person asks about embedding or bundling it in a product they distribute (shipping it to their own customers to install, in an app, installer, container image, device or machine image), do not install it for that purpose and do not say it is allowed: the free licence covers using it and running it as a service for their own customers, and embedding needs a separate commercial licence. Tell them to contact Unidatum through the form at https://www.unidatum.ie/en/contact.
- Questions or problems: the contact form at https://www.unidatum.ie/en/contact.