Skip to content

Server (Rust)

Best for a Linux server, homelab or VPS. Image lutgaru/sinsajo-server from Docker Hub, models/records persisted.

docker-compose.yml
services:
sinsajo-server:
image: lutgaru/sinsajo-server:latest
ports: ["8765:8765"]
volumes:
- sinsajo_models:/app/models
- sinsajo_records:/app/records
restart: unless-stopped
volumes:
sinsajo_models:
sinsajo_records:
Terminal window
docker compose up -d

Or pin a tag: lutgaru/sinsajo-server:latest or server/v* tag. Pass args after image: ... lutgaru/sinsajo-server:latest --model Canary180M --autodownload-model.

The server ships the full local transcribe-rs registry — Parakeet, Canary (180M/1B Flash/1B v2), Cohere (int4/int8), SenseVoice, GigaAM, Moonshine (+ streaming), Whisper and Whisperfile. The OpenAI remote engine is intentionally excluded: Sinsajo is 100% offline.

See Supported Models for flags, languages, download sources, manual-install models and feature gates.

Auto-download handles first-run downloads (HuggingFace single files, or mirror tarballs for Moonshine/SenseVoice/Whisperfile). Subsequent starts ~2–3s. Override dirs with --model-dir / --records-dir. A .sinsajo_manifest.json per model tracks installed files so partial downloads are detected.

Whisper and Whisperfile are compiled out of the default binary to keep it lightweight:

Terminal window
# Build with one backend
cargo build --release --features whisper-cpp
# Both backends
cargo build --release --features "whisper-cpp whisperfile"
# Docker
docker build --build-arg FEATURES=whisper-cpp -t sinsajo-server:whisper .

The published Docker image and precompiled binaries are ONNX-only. WhisperfileSmall also starts a local HTTP server on port 8080 (WHISPERFILE_PORT overrides it).

Clients can switch models without restarting the server. The Settings → Server → Model manager section lists every compiled model, marks installed/active entries, and supports:

  • Download — fetch a missing model with per-file and aggregate progress
  • Load / Reload — swap the active model in memory
  • Delete — remove an installed model (the active model cannot be deleted)

Only one model operation runs at a time. Loading a model broadcasts the new model_info and saves the choice to sinsajo-config.json. The raw messages are documented in Protocol → Model manager.

use transcribe_rs::{set_ort_accelerator, OrtAccelerator};
set_ort_accelerator(OrtAccelerator::Cuda); // or Auto

Canary supports target_language from client start message (Flash: en/de/es/fr; v2: 25 languages). Server forwards to transcribe_with:

model.transcribe_with(&samples, &CanaryParams {
language: Some("es".to_string()),
target_language: Some("en".to_string()),
..Default::default()
})?;

Parakeet is English-only and ignores the target language; Whisper/Whisperfile use it as the language hint. See Protocol.

  • Models: models/ (or --model-dir), one subdirectory per model
  • Recordings: records/ (WAV/OGG, triggered by client clean)
  • Config: sinsajo-config.json (last chosen or loaded model)

The server is not deployed to GitHub Pages (static). Run it on your LAN, VPS, fly.io / Railway, etc. with Docker or a binary. Expose 8765 and point clients to ws://YOUR_IP:8765 or wss:// behind a reverse proxy (Caddy/Nginx). For remote access consider Tailscale/WireGuard.

x86_64 Windows/Linux

Precompiled binary — fastest without Docker.

Other arch

Cargo build — any arch/OS meeting Rust minimums.

Linux server

Docker Compose / CLI — recommended for homelab.