---
title: "Deploy VibeVoice-ASR | (Just Updated) Speech-to-Text API, Whisper Alternative, CPU, API Key Pre-Set"
description: "VibeVoice-ASR speech-to-text API, Whisper alternative, OpenAI-style, CPU"
category: "AI/ML"
url: https://railway.com/deploy/vibevoice-asr-or-just-updated-speech-to-
---

# Deploy VibeVoice-ASR | (Just Updated) Speech-to-Text API, Whisper Alternative, CPU, API Key Pre-Set

VibeVoice-ASR speech-to-text API, Whisper alternative, OpenAI-style, CPU

**[Deploy VibeVoice-ASR | (Just Updated) Speech-to-Text API, Whisper Alternative, CPU, API Key Pre-Set on Railway](https://railway.com/template/vibevoice-asr-or-just-updated-speech-to-)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/vibevoice-asr-or-just-updated-speech-to-/manifest.json

- **Creator:** SuperSlowSloth
- **Category:** AI/ML

## Template content

### vibeasr

- **Image:** ghcr.io/bon5co/vibeasr-railway:1.0.0@sha256:ef0606105b461046cdf046fa88781bc3733390b23b0f07509d3f7e75d0053697
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Deploy and Host VibeVoice-ASR (Speech-to-Text API) on Railway

A speech-to-text API turns an audio file into text: send a recording, get back the words that were said. This template serves Microsoft's VibeVoice-ASR-BitNet, a speech recognition model with 1.58-bit weights, on CPU behind an OpenAI-style `POST /v1/audio/transcriptions` route, so it is a drop-in self-hosted alternative to a hosted Whisper endpoint. The weights are already inside the image, an API key is generated for you at deploy, and no GPU is needed.

## About Hosting VibeVoice-ASR

The service runs Microsoft's VibeASR.cpp, a ggml runtime for the BitNet checkpoint, behind a small FastAPI server. `POST /v1/audio/transcriptions` takes a multipart `file` (anything ffmpeg can read: wav, mp3, m4a, ogg, flac, mp4, webm), an optional `response_format` (`json`, `text` or `verbose_json`, default `json`) and an optional one-line `prompt` that is passed to the model as hotwords (names and terms to spell correctly). It answers `{"text": "..."}`; the headers `X-Audio-Seconds` and `X-Processing-Seconds` report the audio length and the model time. `GET /v1/models` lists the model and the limits in force. The model card lists English, Chinese, French, Italian, Korean, Portuguese and Vietnamese.

Audio is decoded to mono 24 kHz and cut into windows of about 15 seconds, each ending at the quietest point near its boundary, then transcribed one after the other and joined. That cutting is what keeps memory flat: the runtime's memory grows linearly with the audio it is given at once (measured in a local 5-core container at about 190 MB per second on top of 1.3 GB), so a 66-second clip handed over whole reached 11 GB and the process was killed, and the same clip in 15-second windows peaked at 5.5 GB. The service handles one request at a time (a second one gets `429` with `Retry-After`), refuses an upload over 100 MiB or audio over 600 seconds (`413`), and stops a request that runs past 270 seconds (`504`). Audio is held in a temporary directory for one request and deleted afterwards; nothing is logged or kept.

**Measured on Railway, 8 vCPU:** a 11-second clip took **2.30 s** (real-time factor **0.21**); 198 seconds of audio (the same clip joined 18 times) took **35.2 s**, a real-time factor of **0.18**, so the 600-second limit is about 110 seconds of work. Peak memory over that request, from Railway's own metrics, was **4.8 GB**, and CPU peaked at 5.2 cores. The runtime is ready about 0.6 seconds after the container starts, and the image is 2.8 GB.

**What it does not do.** There are no timestamps, no speaker labels and no word-level output: the checkpoint produces plain text only, so `verbose_json` returns the text and the duration with an empty `segments` list. Accuracy was not benchmarked here: the check was that a 11-second English clip (a John F. Kennedy speech excerpt) came back word for word apart from punctuation and capitalisation, repeated 18 times with one small slip in the 198-second run ("america" for "american"), and that bad input and bad keys are refused. Only English was run; the other six languages are the model card's claim, not a result from this deploy. The hotwords `prompt` was accepted but its effect on accuracy was not measured. Windows are cut at fixed lengths, so a word spoken across a boundary can be mis-transcribed. Silence returns an empty string.

### Agent contract

- Public URL: `https://RAILWAY_PUBLIC_DOMAIN` (the generated domain of the `vibeasr` service)
- Private URL: `http://vibeasr.railway.internal:8080`
- Credentials: the `API_KEY` variable of the `vibeasr` service
- Auth: send `Authorization: Bearer $API_KEY` on every route except `GET /health`; a call without the key or with a wrong one answers `401`
- Health: `GET /health` returns 200 once the models are loaded (503 while they load)

```bash
# needs: RAILWAY_PUBLIC_DOMAIN, API_KEY (a variable of the vibeasr service); also curl.
# signup: none - the API has no user accounts, only the API_KEY bearer
R="https://$RAILWAY_PUBLIC_DOMAIN"
# one second of silence as an 8 kHz mono WAV, built in the shell
{ printf 'RIFF\x64\x1f\x00\x00WAVEfmt \x10\x00\x00\x00\x01\x00\x01\x00\x40\x1f\x00\x00\x40\x1f\x00\x00\x01\x00\x08\x00data\x40\x1f\x00\x00'; head -c 8000 /dev/zero | tr '\0' '\200'; } | dd of=/tmp/silence.wav status=none
n=0; until [ "$(curl -s -o /dev/null -w '%{http_code}' "$R/health")" = 200 ]; do n=$((n+1)); [ "$n" -le 60 ] || break; sleep 5; done
curl -s -o /dev/null -w "health: %{http_code}\n" "$R/health"
curl -s -o /dev/null -w "write without key: %{http_code}\n" -X POST "$R/v1/audio/transcriptions" -F file=@/tmp/silence.wav
curl -s -o /dev/null -w "write wrong key: %{http_code}\n" -X POST "$R/v1/audio/transcriptions" -H "Authorization: Bearer not-the-key" -F file=@/tmp/silence.wav
curl -s -X POST "$R/v1/audio/transcriptions" -H "Authorization: Bearer $API_KEY" -F response_format=json -F file=@/tmp/silence.wav; echo
curl -s "$R/v1/models" -H "Authorization: Bearer $API_KEY" | head -c 200; echo
```

A fresh deploy prints `health: 200`, `write without key: 401`, `write wrong key: 401`, `{"text":""}` (the test file is silence, so nothing is said) and the start of the model list. To transcribe speech, send a recording instead of `/tmp/silence.wav`; the OpenAI Python and JavaScript clients work with `base_url` set to `https://RAILWAY_PUBLIC_DOMAIN/v1` and `api_key` set to `API_KEY`. A file ffmpeg cannot decode answers `400`, a `response_format` other than the three listed answers `400`, a `prompt` with a line break or over 2000 characters answers `400`, a busy service answers `429`, and a `503` means the models are still loading. The API only reads the files you send and never fetches a URL, so it cannot be pointed at an address inside your network.

## Why Deploy VibeVoice-ASR 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 VibeVoice-ASR 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.

- **Your recordings stay in your container** — transcription runs in your own service, not in a hosted speech API that sees every upload.
- **OpenAI-style route** — clients written for `/v1/audio/transcriptions` only need a new base URL and key.
- **No GPU bill and no per-minute fee** — you pay for the container; a minute of audio took about 11 seconds of model time here.
- **Open weights, commercial use** — the model and its runtime are both MIT-licensed.
- **Private by default** — a generated bearer key guards every route but the health check, and the container refuses to start without one.
- **Nothing to configure** — no volume, no model download and no variables to fill in: submit the deploy form empty.

## Common Use Cases

- **Meeting and call notes** — send a recording after the call and file the text into a wiki or ticket.
- **Voice input for an agent** — let an n8n or coding-agent workflow turn a voice message into a prompt with one HTTP call.
- **Subtitles and search for audio archives** — transcribe podcasts or interviews in batches and index the text.

## Dependencies for VibeVoice-ASR Hosting

- A service with **at least 8 GB of RAM** (peak 4.8 GB measured on a 198-second request, 15-second windows) and 8 vCPU for the speeds above; fewer vCPU run proportionally slower.
- No volume: the service keeps no state and the weights are in the image.

### Deployment Dependencies

- [microsoft/VibeVoice-ASR-BitNet](https://huggingface.co/microsoft/VibeVoice-ASR-BitNet) — the model weights, `license: mit` in the model card
- [microsoft/VibeASR.cpp](https://github.com/microsoft/VibeASR.cpp) — the CPU runtime, MIT
- [bon5co/vibeasr-railway](https://github.com/bon5co/vibeasr-railway) — the Railway wrapper image this template deploys, Apache-2.0
- Licences: the model card front matter states `license: mit`, and the VibeASR.cpp `LICENSE` file begins "MIT License — Copyright (c) Microsoft Corporation." ffmpeg is LGPL/GPL as built by Debian. The notices travel with the image at `/app/NOTICE`.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/vibevoice-asr-or-just-updated-speech-to-
