Self-hosted app·Self-hosted AI
Self-hosted TTS API on a Swiss VPS.
Run a self-hosted TTS API (Kokoro, Piper) on a 12 vCPU / 16 GB VPS in the Swiss Alps. Sizing, Docker setup, costs and limits.
- Docker
- Caddy
ALP1·Swiss Alps
In stockRecommended for this use case
- 2 Gbps port40 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $386.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 12 vCPU, 16 GB RAM
- 640 GB NVMe local storage
- 40 TB transfer on a 2 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes. A self-hosted TTS API with an OpenAI-compatible endpoint runs comfortably on our Cloud VPS Power plan: 12 vCPU, 16 GB RAM, 640 GB NVMe and 40 TB of monthly transfer for $42.99 a month, in ALP1 in the Swiss Alps. What decides whether the project works is the model, not the plan. We do not rent GPUs, so you want engines designed to run on CPU — Kokoro-82M for natural English, French and Italian, Piper for German and for the lowest latency. Voice-cloning models such as XTTS-v2, F5-TTS or Chatterbox will start on a CPU, but they produce audio more slowly than it plays back, and two of them may not be used commercially at all.
02/06
What you are actually running.
The interface has more or less settled on the shape OpenAI introduced: POST /v1/audio/speech with a JSON body carrying model, voice and input, returning MP3 or WAV. A server that speaks that dialect lets you keep your existing OpenAI SDK code and change only the base URL. Behind the endpoint sit one or more synthesis engines, and that is where the licence and performance questions are.
Kokoro-82M, published by hexgrad, is a small model whose weights and voice packs are licensed Apache 2.0. Its official voices cover American and British English, Spanish, French, Hindi, Italian, Japanese, Brazilian Portuguese and Mandarin. For a Swiss audience the gaps are the point: there is no German, French rests on a single voice trained on under eleven hours of audio, and Italian has two voices. Piper fills most of that hole. Michael Hansen wrote it for the Rhasspy voice-assistant project; the original MIT-licensed repository was archived in October 2025, and development continues under the Open Home Foundation as piper1-gpl, licensed GPL-3.0. Its voice collection includes several de_DE, fr_FR and it_IT voices, and each carries its own licence in its model card — de_DE-thorsten is CC0, fr_FR-siwis is CC BY 4.0. Neither project ships a Swiss German or Romansh voice. If your listeners expect dialect, open-source TTS will not give it to you today.
You can wire these engines into an HTTP service yourself, but Speaches already does it. It is an OpenAI-compatible server, modelled on the way Ollama handles language models, that serves Kokoro and Piper for speech and faster-whisper for transcription, downloads models on request and enforces an API key if you set one. Kokoro-FastAPI is the better choice if you only need Kokoro and want Opus output for telephony or WebRTC, which Speaches does not produce.
| Engine | Weights licence | National languages | Voice cloning | On CPU |
|---|---|---|---|---|
| Kokoro-82M | Apache 2.0 | FR (1 voice), IT (2), no DE | No | Practical |
Piper (piper1-gpl) | Code GPL-3.0; each voice its own | DE, FR, IT | No | Built for it |
| XTTS-v2 | Coqui Public Model Licence — non-commercial | DE, FR, IT | Yes | GPU-oriented |
| F5-TTS | CC BY-NC 4.0 — non-commercial | Base model EN/ZH | Yes | GPU-oriented |
| Chatterbox | MIT | Multilingual model incl. DE, FR | Yes | ≈ 0.34× real time on an Apple M4 CPU (third-party figure) |
Two notes on that table. Piper's GPL-3.0 attaches obligations to distribution; running it as a service you never ship to anyone is a different situation from embedding it in software you sell, and GPL-3.0, unlike the AGPL, has no network-use clause. And XTTS-v2 cannot be fixed by paying: Coqui, the company that could have sold a commercial licence, closed at the turn of 2024.
Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/06
Sizing why Power, and when to move.
At these model sizes, TTS on CPU is limited by compute, not memory. Kokoro's 82 million parameters come to roughly 330 MB in fp32 (theoretical: 82 M × 4 bytes), and a medium Piper voice is a few tens of megabytes. Railway's published template for Speaches budgets about 2 GB of RAM for CPU inference with one Whisper model and one Kokoro model loaded. The 16 GB on Power is therefore not for the models; it is room for several voices kept warm, a transcription model if you add one (our Whisper transcription guide), the reverse proxy and page cache. Disk is even less of a constraint — 640 GB holds every voice you could reasonably want, many times over.
CPU is the real budget. One synthesis call spreads across several cores through ONNX Runtime, and parallel requests then fight over the same cores, so 12 vCPU buys you lower latency per request or more requests in flight, not both at full value. Run lscpu after deployment to see which instruction sets the guest exposes. Most speed claims in the TTS threads on r/LocalLLaMA come from GPUs, so measure with your own text before promising anyone a latency.
| Plan | vCPU / RAM / NVMe | Transfer / port | Price | Sensible for |
|---|---|---|---|---|
| Pro | 6 / 8 GB / 320 GB | 20 TB / 1 Gbps | $22.99/mo | One or two Piper voices, internal tools, low volume |
| Power | 12 / 16 GB / 640 GB | 40 TB / 2 Gbps | $42.99/mo | Kokoro and Piper behind one endpoint, moderate concurrency |
| Ultra | 16 / 32 GB / 1 TB | 60 TB / 2 Gbps | $65.99/mo | Adding Whisper, or batch runs with Chatterbox |
Transfer will not be what stops you. A 128 kbit/s MP3 is about 57.6 MB per hour of audio, so 40 TB would carry roughly 694,000 hours a month (theoretical) — vastly more than 12 vCPU can synthesise in the 730 or so hours a month has. It only becomes relevant if you serve the same files repeatedly, and those belong in object storage anyway.
If you outgrow a VPS, a dedicated server gives you whole cores and unmetered traffic under fair use on a 10 Gbps port: Titlis (EPYC 4564P, 16 cores/32 threads, 96 GB) at $139.99 or Matterhorn (EPYC 9254, 24/48, 192 GB) at $219.99. The EPYC 4004 models have two DDR5 channels and the 9254 has twelve. That difference barely touches Kokoro or Piper; it does matter once you push larger autoregressive voice models through a CPU.
04/06
Deploying it on ALP1.
- 01Order Power with Debian 13 from the deploy page and point an A record —
tts.example.combelow — at its IPv4 address.
- 02Install Docker from Docker's own repository, which supports Debian 13 (trixie):
apt update && apt install -y ca-certificates curl jq
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \
https://download.docker.com/linux/debian trixie stable" > /etc/apt/sources.list.d/docker.list
apt update && apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin- 03Create the project with a random API key:
mkdir -p /opt/tts && cd /opt/tts
echo "TTS_API_KEY=$(openssl rand -hex 32)" > .env && chmod 600 .env/opt/tts/compose.yaml:
services:
speaches:
image: ghcr.io/speaches-ai/speaches:latest-cpu # pin the release tag you tested
restart: unless-stopped
environment:
API_KEY: ${TTS_API_KEY}
ENABLE_UI: "false"
LOG_LEVEL: warning
TTS_MODEL_TTL: "-1"
PRELOAD_MODELS: '["speaches-ai/Kokoro-82M-v1.0-ONNX"]'
volumes:
- hf-cache:/home/ubuntu/.cache/huggingface/hub
logging:
options: { max-size: "10m", max-file: "3" }
caddy:
image: caddy:2
restart: unless-stopped
ports: ["80:80", "443:443"]
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
volumes:
hf-cache:
caddy-data:/opt/tts/Caddyfile:
tts.example.com {
@public path /docs* /openapi.json
respond @public 404
request_body {
max_size 64KB
}
reverse_proxy speaches:8000
}Each of those lines exists for a reason. Speaches has no ports: entry because Docker publishes ports through its own iptables rules, which bypass ufw; the only way in is through Caddy, which also fetches the TLS certificate. With API_KEY set, Speaches still leaves its web UI, /docs and /openapi.json open, so the UI is switched off and Caddy hides the other two. Its default log level is debug, which is not where you want customer text to end up — check docker logs before real data goes through. TTS_MODEL_TTL=-1 keeps the model loaded instead of unloading it after the default five idle minutes, so the first request of the morning does not pay a cold start.
- 04Start it and add the Piper voices you need:
cd /opt/tts && . ./.env && docker compose up -d
curl -s -H "Authorization: Bearer $TTS_API_KEY" https://tts.example.com/v1/registry \
| jq -r '.data[].id' | grep -E 'de_DE|fr_FR|it_IT'
curl -X POST -H "Authorization: Bearer $TTS_API_KEY" \
https://tts.example.com/v1/models/<model-id-from-that-list>- 05Test the endpoint:
curl -s https://tts.example.com/v1/audio/speech \
-H "Authorization: Bearer $TTS_API_KEY" -H "Content-Type: application/json" \
-d '{"model":"speaches-ai/Kokoro-82M-v1.0-ONNX","voice":"af_heart",
"input":"The 14:02 to Interlaken Ost leaves from platform 3.","response_format":"mp3"}' \
-o test.mp3Before you switch on the French and Italian voices (ff_siwis, if_sara, im_nicola), listen to a page of your real text; with one French voice and little training data behind it, you are judging the whole language on one speaker. For fixed phrases — IVR prompts, station announcements, app notifications — hash model, voice and text, synthesise once, and push the file to an S3 bucket with aws s3 cp or rclone copy. Our buckets have unmetered traffic in both directions, which keeps repeated playback off the VPS transfer allowance.
05/06
Cost.
| Item | Price |
|---|---|
| Cloud VPS Power | $42.99/mo |
| Power, yearly billing (≈ −25 %) | $386.99/yr, about $32.25/mo |
| Daily backups (+20 %) | $51.59/mo in total (theoretical: 42.99 × 1.2) |
| Extra IPv4 | $2/mo |
| Priority support | $10/mo |
| Object storage, 250 GB, for an audio cache | $1.99/mo |
The plan includes the 12 vCPU, 16 GB RAM, 640 GB NVMe, a 2 Gbps port and 40 TB of transfer per month. VPS traffic is not unmetered; the 40 TB is what the plan includes.
Be honest with yourself about the arithmetic. OpenAI lists tts-1 at $15 per million characters, so Power costs the same as about 2.87 million characters a month — at roughly 900 characters per minute of speech, around 53 hours of audio (both figures theoretical). Below that volume a hosted API is cheaper in cash. What self-hosting buys is the data path, a fixed bill that does not grow per request, and the freedom to choose and pin your models.
Payment is in crypto only — Monero, Bitcoin, Tether (USDT), Ethereum, Litecoin and other coins — with balances in US dollars. Top-ups run from $25 to $5,000, with a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500, and the unused paid part of a top-up is refundable within 14 days. We do not ask for identity documents: an email address is enough (no-KYC hosting), and business customers paying in crypto are welcome. Every plan is on the pricing page.
06/06
Limits and acceptable use.
Sustained full CPU load is not a problem in itself; we allow mining on our VPS, which is a harsher profile than any synthesis queue. The limits are about what the audio is used for.
A voice is personal data under the Swiss Federal Act on Data Protection, and voice data processed to identify a person uniquely is biometric data, which the Act treats as sensitive (art. 5 let. c). Using synthetic voices to defraud people or to pass yourself off as someone else — fake-CEO calls, bank "security" calls — falls under the ban on fraud in our acceptable use policy. Cloning someone's voice without their consent processes their personal data, and that is yours to answer for. Copyright applies to what you narrate: in Switzerland, downloading a work for private use is permitted (software excepted), but making it available online without permission is not, so an audiobook of a novel you hold no rights to cannot be published from our servers.
When we receive a complaint, the procedure is the same as for any other content. A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to the customer, who must remove the content or justify it, and we act on a decision of a competent Swiss authority, or where the content is manifestly unlawful (Swico Code of Conduct Hosting 2025).
Your side of the arrangement is concrete. Keep the endpoint behind a key: an open TTS endpoint is free CPU for strangers and a ready-made tool for scam calls. Respect model licences — XTTS-v2 and F5-TTS are non-commercial, and each Piper voice has its own terms. If you synthesise text containing other people's personal data, you are the controller for that processing, including what your logs retain.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerRecommendedHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Can I point the OpenAI SDK at it?
Yes. Set base_url to https://tts.example.com/v1 and api_key to your key; model and voice names are the server's own (speaches-ai/Kokoro-82M-v1.0-ONNX, af_heart), not OpenAI's. Speaches does not return opus or aac, so request MP3, WAV or FLAC, or run Kokoro-FastAPI where you need Opus.
Do you offer GPU servers?
No. Our catalogue is CPU-only, which is why this page recommends Kokoro and Piper. If you need live voice cloning, a GPU host elsewhere is the realistic answer, with the jurisdiction trade-off that comes with it. If batch is acceptable, Chatterbox on Ultra or a dedicated server can render overnight at below-real-time speed.
Does the text I synthesise leave Switzerland?
Inference runs on the VPS in ALP1. Speaches needs outbound access to download models from Hugging Face; once they are cached, add an egress firewall rule and confirm nothing breaks — that is better evidence than any assurance from us. Whatever your own application sends elsewhere is your code's business. For EU customers, the European Commission confirmed on 15 January 2024 that Switzerland still provides an adequate level of protection, so personal data can flow here without additional safeguards.
Which authorities can demand access?
The service is operated by Hosta AG, a Swiss société anonyme (IDE CHE-107.875.655), under the revised FADP in force since 1 September 2023. Swiss authorities can order disclosure under Swiss law, and we act on decisions of competent Swiss authorities. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Switzerland, so a US request has no executive-agreement shortcut and must use the ordinary routes of international cooperation. The revision of the Swiss surveillance ordinance (VÜPF/OSCPT) put to consultation in January 2025 is not in force; the Federal Council has announced a second consultation. The offshore hosting page covers the jurisdiction in more depth.
Can I clone my own voice for a product?
Your own voice, or one you hold written consent for, yes. The obstacle is licensing: XTTS-v2 and F5-TTS rule out commercial use, which leaves MIT-licensed Chatterbox among the well-known options, and it is slower than real time on a CPU. Plan for pre-rendered audio rather than live calls. If the text comes from a model you also want to keep in Switzerland, see our guide to a self-hosted OpenAI-compatible API.
To reach us about any of this, open a support ticket from the client panel.
Sources
Every fact on this page, with its source
Consulted 6 Nov 2026 unless noted.
Swiss law and authorities
- Swiss Federal Act on Data Protection (FADP), RS 235.1, in force since 1 September 2023; art. 5 let. c (sensitive data, biometric data)fedlex
- Federal Council, revision of the surveillance ordinance (VÜPF/OSCPT), status as of 31 October 2026admin.ch · status as of 31 Oct 2026
- IPI, copyright on the internet: private download vs. making available onlineige.ch
EU and other countries
Industry, providers and software
- Open Home Foundation, piper1-gpl repository (GPL-3.0, HTTP server)github.com/OHF-Voice/piper1-gpl
- Kokoro-FastAPI (CPU image, Opus output)github.com/remsky/Kokoro-FastAPI
- Docker, Install Docker Engine on Debian (Debian 13 supported; published ports bypass ufw)docs.docker.com
Other references
- OpenAI, tts-1 model page, $15 per 1M charactersdevelopers.openai.com
- hexgrad, Kokoro-82M model card (Apache 2.0) and VOICES.md (languages, single French voice, under 11 h of French data)huggingface.co/hexgrad/Kokoro-82M
- Piper voice collection and per-voice licenceshuggingface.co/rhasspy/piper-voices
- Speaches documentationinstallation
- Railway, Speaches deployment template (about 2 GB RAM for CPU inference)railway.com
- XTTS-v2 licence (Coqui Public Model Licence, non-commercial)huggingface.co/coqui/XTTS-v2
- F5-TTS licence (CC BY-NC 4.0)PromptQuorum, local TTS licences
- Chatterbox (MIT) and CPU real-time factor of 0.34 on an Apple M4, third-party benchmarkpypi.org/project/chatterbox-mlx
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
