Deploy WhisperLiveKit
Real-time speech-to-text server with live web UI and OpenAI-style API
WhisperLiveKit
Just deployed
/data
Deploy and Host WhisperLiveKit on Railway
WhisperLiveKit is an open-source, self-hosted speech-to-text server. It transcribes speech in real time as you talk, using Whisper models that run on your own server, not a paid API. It ships a browser UI, a live WebSocket API, an OpenAI-compatible transcription endpoint and a Deepgram-compatible WebSocket.
About Hosting WhisperLiveKit
This template runs WhisperLiveKit v0.2.28 as one service, built from upstream's official CPU image pinned by digest. Railway has no GPUs, so it uses the faster-whisper backend with the small tiny model, which keeps up with live speech on one vCPU and fits Railway's 0.5 GB plan (about 380 MB in use while transcribing). The model is downloaded on first start and cached on a volume. A generated WLK_API_TOKEN locks the UI's WebSocket and every API, and the server refuses to start without it. The start script sizes threads, live sessions and the upload limit from the service's memory. Bigger models need more RAM: small about 1.5 GB, medium and large-v3 3-6 GB.
Common Use Cases
- Live captions or meeting notes from a browser microphone
- A private, OpenAI-compatible transcription API for your own apps and scripts
- A drop-in, self-hosted backend for tools that speak Deepgram's live WebSocket protocol
Dependencies for WhisperLiveKit Hosting
- One Railway service built from the template repo, with a volume at
/datafor the model cache - No database and no API keys: transcription runs locally on the service's CPU
Deployment Dependencies
- WhisperLiveKit source and docs: https://github.com/QuentinFuxa/WhisperLiveKit
- Release v0.2.28: https://github.com/QuentinFuxa/WhisperLiveKit/releases/tag/v0.2.28
- Template repo (Dockerfile, start script, changelog): https://github.com/aalfath/whisperlivekit-railway-template
Implementation Details
The deploy creates one service, WhisperLiveKit: the web UI and APIs on the public domain, health check /health, model cache on the /data volume. Variables: WLK_API_TOKEN (generated), WLK_MODEL (default tiny), WLK_LANGUAGE (default auto) and PORT (8000). There is nothing to fill in.
After deploy, copy WLK_API_TOKEN from the service's Variables tab, then:
- Browser UI: open
https://YOUR-DOMAIN/#token=YOUR-TOKEN, allow the microphone and press record. - REST:
curl https://YOUR-DOMAIN/v1/audio/transcriptions -H "Authorization: Bearer YOUR-TOKEN" -F file=@audio.wav(or the OpenAI SDK withbase_url="https://YOUR-DOMAIN/v1"and the token asapi_key). - Live WebSocket:
wss://YOUR-DOMAIN/asr?token=YOUR-TOKEN, orwss://YOUR-DOMAIN/v1/listenwith the headerAuthorization: Token YOUR-TOKENfor Deepgram clients.
Speaker diarization, translation and the Voxtral/Qwen3 backends are off because they need several GB of RAM or a GPU. On a bigger plan you can switch them on with WLK_EXTRA_ARGS (see the repo README). Updates: when the template repo bumps the WhisperLiveKit version, Railway shows an "update available" notice on your project, and the repo's CHANGELOG lists any breaking changes. The model cache on the volume is kept.
Why Deploy WhisperLiveKit on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying WhisperLiveKit on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
WhisperLiveKit
aalfath/whisperlivekit-railway-template
