Voice transcription (speech to text)
Voice messages, round video notes and meeting recordings in
Discussions can become text. The transcript is posted into
the same discussion as a reply to the recording, so it is linked to its source,
survives restarts, and is included in search and the knowledge base.
When a language model is also configured, the transcript can be followed by an
AI digest (decisions, questions, action items). Transcription itself does not
need a language model.
What you get
- automatic transcripts under voice messages and recordings;
- live progress for long recordings: text appears segment by segment, and the
finished transcript is still posted once, complete; - an optional AI digest after the transcript (only when an LLM is configured);
- the transcript is searchable and is used as meeting knowledge.
Audio travels only between the transcription component and the admin node.
Choose how transcription runs
There are two supported ways to provide speech recognition:
- The Mockarty transcription component (
mockarty-whisper-runner) — a
self-hosted component that runswhisper-serverlocally and registers
itself with the admin node. Recommended for air-gapped installs: audio never
leaves your infrastructure. - An external OpenAI-compatible speech-to-text API — for installations
that already operate such a service.
If both are configured, a live component takes priority; the external API
handles namespaces that no component covers.
Run the transcription component
1. Install whisper-server
The component wraps whisper-server from the open-source whisper.cpp project.
Install it on the host (or use the supplied container image, which already
contains it). If the binary is not on PATH, point the component at it with
WHISPER_SERVER_BIN.
2. Choose and provide a model
WHISPER_MODEL_SIZE selects one pinned GGML file. The default is small.
At startup the component checks the file’s SHA-256, so a truncated or replaced
file cannot silently degrade transcripts.
WHISPER_MODEL_SIZE |
File | Size | Memory per job | Quality |
|---|---|---|---|---|
tiny |
ggml-tiny-q5_1.bin |
~32 MB | ~256 MB | smoke tests and CI only: fast, but garbles names and Russian |
base |
ggml-base-q5_1.bin |
~60 MB | ~384 MB | fast; acceptable English, noticeably weaker Russian |
small (default) |
ggml-small-q5_1.bin |
~190 MB | ~768 MB | best speed/quality balance; correct brand names in English |
medium |
ggml-medium-q5_0.bin |
~540 MB | ~1.5 GB | accuracy-critical; about twice the small model’s time and memory |
The component never downloads a model while starting. Prepare the file once
on a host with network access:
./mockarty-whisper-runner --download-model small
The command downloads the pinned file into $WHISPER_MODEL_DIR (default
~/.cache/mockarty/whisper), verifies its SHA-256 and prints the path. Copy the
file to the air-gapped host, mount it, and either set WHISPER_MODEL_PATH or
leave the file in a directory the component scans.
When WHISPER_MODEL_PATH is not set, the component looks for the chosen file in
$WHISPER_MODEL_DIR, /models, ./models, ~/.cache/mockarty/whisper. If it
is absent, startup stops with an explicit error naming the expected file, the
pinned digest and the command above. Legacy installations that only have some
other ggml-*.bin keep working — that file is used and labelled custom in the
admin — but an explicitly configured WHISPER_MODEL_SIZE is never silently
replaced by another model.
For your own model file, pin it with WHISPER_MODEL_SHA256. Set
WHISPER_MODEL_VERIFY=0 only when hashing a very large file at every start is
too expensive for the host.
3. Create an API token for the component
The component authenticates with a normal API token. The token’s scope decides
what the component may serve:
- a shared component (serves every namespace) needs a system-administrator
token and an emptyRUNNER_NAMESPACE; - a team component sets
RUNNER_NAMESPACEto its namespace, and the token’s
owner must be a member of that namespace.
4. Start the component
MOCKARTY_URL=http://127.0.0.1:5770 \
MOCKARTY_API_TOKEN=<api token> \
WHISPER_SERVER_BIN=/usr/local/bin/whisper-server \
WHISPER_MODEL_PATH=/srv/models/ggml-small-q5_1.bin \
WHISPER_THREADS=4 \
RUNNER_NAME=whisper-primary \
RUNNER_NAMESPACE= \
./mockarty-whisper-runner
RUNNER_NAMESPACE= (empty) registers a shared component. Set
RUNNER_NAMESPACE=sandbox to serve one namespace only.
| Variable | Required | Meaning |
|---|---|---|
MOCKARTY_URL |
yes | Admin node base URL |
MOCKARTY_API_TOKEN |
yes | API token the component authenticates with |
WHISPER_MODEL_SIZE |
no | tiny, base, small (default) or medium; names one pinned, digest-verified file |
WHISPER_MODEL_PATH |
no | Explicit path to a GGML model file (wins over WHISPER_MODEL_SIZE) |
WHISPER_MODEL_DIR |
no | Extra directory searched for the sized model; also the destination of --download-model |
WHISPER_MODEL_SHA256 |
no | Expected SHA-256 for an operator-supplied model file |
WHISPER_MODEL_VERIFY |
no | 0 disables the startup digest check (default: on) |
WHISPER_SERVER_BIN |
no | Path to whisper-server (default: whisper-server on PATH) |
WHISPER_MODEL_NAME |
no | Model label shown in the admin (default: file name) |
WHISPER_LANGUAGES |
no | Advertised language hint (default auto; language is detected from the audio) |
WHISPER_THREADS |
no | Threads per job; default is CPU count ÷ RUNNER_CONCURRENCY |
WHISPER_MAX_THREADS |
no | Ceiling for the derived thread count (default: CPU count) |
WHISPER_MEMORY_BUDGET_MB |
no | Memory ceiling; startup refuses a model + concurrency combination that does not fit |
RUNNER_NAME |
no | Display name (default whisper-<hostname>) |
RUNNER_NAMESPACE |
no | Serve only this namespace; empty = shared |
RUNNER_CONCURRENCY |
no | Parallel jobs (default 1 — transcription is CPU-bound) |
WHISPER_TRIM_SILENCE |
no | 1 = remove long silences with ffmpeg before recognition |
RUNNER_HEALTH_ADDR |
no | Health-only listen address for a pull-only component, e.g. :9090 |
RUNNER_PUSH_ADDR |
no | Accept jobs handed over directly, e.g. 127.0.0.1:8791 |
RUNNER_ADVERTISE_HOST |
no | Host the admin dials for direct hand-over |
RUNNER_PUSH_SECRET |
no | Shared secret for direct hand-over (falls back to MOCKARTY_A2A_SECRET) |
RUNNER_STATE_DIR |
no | Durable directory for the direct-hand-over journal |
RUNNER_STATE_ID |
no | Stable identity for that journal across restarts |
Direct hand-over (push mode) is optional. It lets the admin send a job the
moment it is queued instead of waiting for the component’s next poll. Enable it
only when the admin can reach the component’s advertised host:
MOCKARTY_URL=http://127.0.0.1:5770 \
MOCKARTY_API_TOKEN=<api token> \
RUNNER_PUSH_ADDR=127.0.0.1:8791 \
RUNNER_ADVERTISE_HOST=127.0.0.1 \
RUNNER_PUSH_SECRET=<same value as the admin's MOCKARTY_A2A_SECRET> \
./mockarty-whisper-runner
The admin must have MOCKARTY_A2A_SECRET set to the same value. Without it the
admin never pushes; the pull loop still delivers every job, so transcription
keeps working.
The admin also applies its outbound policy to the advertised host. Loopback and
private addresses are refused unless the deployment allows them — list the
component’s host in MOCKARTY_TARGET_ALLOWLIST (preferred) or set
ALLOW_PROXY_TO_PRIVATE_IPS=true. A refused push is not lost: it falls back to
the pull loop.
For CI-style ephemeral use, --once processes a single job and exits.
5. Verify
The component registers itself, so the admin needs no extra setting for a live
component. Check that it is online:
curl -H "Authorization: Bearer <token>" \
http://127.0.0.1:5770/api/v1/transcribe/runners
The response lists the component with "online": true, its model, its
namespace and its concurrency. GET /api/v1/transcribe/jobs?namespace=<namespace>
shows recent queued and finished jobs. You can see the transcript and any job
error while you have access to the original recording. System administrators
and integration tokens with Space access can also see queue status for jobs
without access to the recording.
Docker Compose
A compose file ships with the distribution at
deploy/compose/docker-compose.whisper-runner.yml. The image contains
whisper-server and a small multilingual model, so the minimal start is two
variables:
MOCKARTY_URL=http://admin:5770 MOCKARTY_API_TOKEN=<api token> \
docker compose -f docker-compose.whisper-runner.yml up -d
Serve one namespace and scale the pool:
MOCKARTY_URL=http://admin:5770 MOCKARTY_API_TOKEN=<team api token> \
RUNNER_NAMESPACE=sandbox \
docker compose -f docker-compose.whisper-runner.yml up -d --scale whisper-runner=2
Use a different model without rebuilding the image by mounting a directory:
WHISPER_MODEL_DIR=/srv/models \
WHISPER_MODEL_FILE=ggml-medium-q5_0.bin \
MOCKARTY_URL=http://admin:5770 MOCKARTY_API_TOKEN=<api token> \
docker compose -f docker-compose.whisper-runner.yml up -d
Kubernetes (Helm)
The Mockarty Helm chart includes the component. Enable it in your values:
whisperRunner:
enabled: true
namespace: "sandbox" # namespace it serves
apiToken: "" # inline for development
existingSecret: "" # Secret holding API_TOKEN (recommended)
The chart’s default resources are 500m CPU / 1 GiB memory requested and 2 CPU /
2 GiB limit for the small model. Raise them for the medium model or when
several recordings arrive at once.
Use an external speech-to-text API
If you already operate an OpenAI-compatible audio transcription endpoint, point
the admin node at it:
MOCKARTY_TRANSCRIBE_URL=https://stt.internal/v1/audio/transcriptions
MOCKARTY_TRANSCRIBE_KEY=<key> # optional
MOCKARTY_TRANSCRIBE_MODEL=whisper-1 # optional
MOCKARTY_TRANSCRIBE_URL may be either the API root or the full
/audio/transcriptions endpoint; both forms are accepted. When a speech-to-text
component is live for a namespace, it takes priority over this fallback.
Per-namespace settings
Open Settings → AI & Meetings for the namespace:
- Auto-transcribe — when on (the default), a newly posted voice message or
recording is queued automatically. When off, users can still transcribe
individual messages with the Transcribe action. - Voice language — the language hint used when a request names none.
Recognition still detects the spoken language from the audio. - Voice runner selector — pins automatic and manually requested voice
work to components advertising matching labels. Leave it empty to allow any
capable component.
The selector syntax is comma-separated key=value pairs, for example
region=eu,gpu=true. A job whose selector no live component satisfies stays
pending with an explicit reason instead of being claimed by the wrong
component.
Resource planning
Measured on a 10-core Apple Silicon host with 4 threads per job (11.6 s of
quiet synthesized speech):
| Size | Peak memory | Decode time | Notes |
|---|---|---|---|
tiny |
~158 MB | 1.6 s | smoke only |
base |
~228 MB | 2.2 s | weak Russian |
small |
~501 MB | 10.6 s | default |
medium |
~1.1 GB | 18.0 s | accuracy-critical |
- Transcription is CPU-bound. A single job occupies one component slot; the
default concurrency of 1 keeps latency predictable. Plan one CPU core per
WHISPER_THREADSthread and roughly the measured memory per concurrent job
plus 256 MB for the component itself. - Threads derive from the CPU count and
RUNNER_CONCURRENCY(bounded by
WHISPER_MAX_THREADS), so a many-core host is used without oversubscribing
each job.WHISPER_THREADSoverrides the derivation. WHISPER_MEMORY_BUDGET_MBis a hard ceiling: if the model and concurrency do
not fit, the component refuses to start with the numbers instead of being
killed mid-recording. Leave it empty to derive the budget from the model.- A long recording is transcribed in 2-minute segments, so text appears as it is
produced; the finished transcript is still posted once, complete. A job has a
60-minute end-to-end budget and the uploaded recording is capped at 25 MiB by
the attachment store, so one job can never occupy a slot indefinitely. - The supplied container image is CPU-only. GPU acceleration requires a
whisper-serverbuild with GPU support and the matching runtime.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| Registration returns 403 | A shared component needs a system-administrator token; a team token must set RUNNER_NAMESPACE |
| The component stops with “transcription model … not found” | The chosen size file is absent. Run --download-model <size>, copy the file to the host, or set WHISPER_MODEL_PATH |
| The component stops with “SHA-256 mismatch” | The model file is truncated or replaced. Re-download it with --download-model (or set your own WHISPER_MODEL_SHA256) |
| The component stops with “WHISPER_MEMORY_BUDGET_MB … is too small” | The model does not fit the configured budget. Raise the budget, lower RUNNER_CONCURRENCY, or pick a smaller size |
No Transcribe button and transcription: false in the chat capabilities |
No live component covers the namespace and MOCKARTY_TRANSCRIBE_URL is unset |
| A job stays pending with “no live transcription runner matches the required runner selector” | The namespace selector matches no online component. Fix the selector or start a matching component |
| A voice note is refused as too large | The attachment store caps one upload at 25 MiB. Split the recording or raise the store limit for the deployment |
| No transcript appears | Check the job status in GET /api/v1/transcribe/jobs?namespace=<namespace>. The job includes an error only while you have access to its original recording |
| “recording has no audio track to transcribe” | The uploaded video contains no audio |
| A silent recording produces no transcript | Silence and subtitle boilerplate are discarded on purpose; nothing is posted |
Privacy and air-gapped installs
- A self-hosted component sends audio only to the admin node that owns it.
Nothing is uploaded to Mockarty or to any third party. - The component and the model can be installed entirely offline. If you build
the container image yourself, vendor the model file instead of downloading
it during the build. - The external-API fallback is the only mode that sends audio outside your
infrastructure; use it only when your policy allows it.
Related documentation
- Discussions — voice messages, meetings, transcripts
- AI Components — the full component inventory
- AI features — digests, summaries and agents