Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Local transcription

Kanadr transcribes voicemail through the OpenAI-compatible transcription API (POST …/audio/transcriptions). The service can be online (OpenAI, Groq, Mistral AI, Scaleway, OVHcloud: see the list of providers) or installed on your premises: messages then never leave your network. Kanadr does not ship an engine; any server that exposes this API works.

Kanadr sends the file (file), the model (model) and the language (language), and reads the text of the JSON response ({"text": …}) or a plain-text response: the server needs nothing else.

Example: Speaches (faster-whisper)

Speaches serves Whisper models through faster-whisper behind this API. On a separate VM, with Docker:

# CPU only (replace latest-cpu with latest-cuda and add --gpus=all with an NVIDIA card)
# API_KEY: optional; once set, the service requires this key (Bearer header).
# Service key, to copy into the portal (Key field)
CLE=$(openssl rand -hex 24)
echo "$CLE"
docker run --detach --restart unless-stopped --name speaches \
  --publish 8000:8000 \
  --env API_KEY="$CLE" \
  --volume hf-hub-cache:/home/ubuntu/.cache/huggingface/hub \
  ghcr.io/speaches-ai/speaches:latest-cpu

# Download a multilingual model (French and English): Speaches has no default model
curl -X POST -H "Authorization: Bearer $CLE" \
  http://localhost:8000/v1/models/Systran/faster-whisper-small

Then, in the portal, Settings page, Voicemail transcription section, provider Speaches (server you install):

FieldValue
Addresshttp://VM-ADDRESS:8000/v1 (8000: Speaches’ default port)
ModelSystran/faster-whisper-small, or another downloaded model
Languageempty: each message in its customer’s language
Keythe API_KEY one; empty if you did not set it

Try checks that the service responds. Then turn on the Voicemail transcription feature (Settings page, Features card).

  • Model: small runs on a 4-core CPU for a few hundred messages a day; medium or large-v3 transcribe better, preferably with a graphics card. Do not use the .en models, English only.
  • Network: without API_KEY, the service has no authentication; set a key and open it to Kanadr only (firewall).
  • Outage: a transcription may take up to 7 minutes. On failure, Kanadr retries after 1 minute then after 5 minutes, then sends the message’s email without the text.

These commands come from the Speaches documentation, to follow for recent versions.