Echo: a self-hosted, CPU-only voice cloning studio with a 3D avatar
- Key gotcha
- On a CPU, two syntheses in parallel each run at half speed and use twice the memory, so a queue does about the same work with less risk.
What they built
jbcanillo built Echo: give it a few seconds of someone's voice and some text, and it reads the text back in that voice while a 3D avatar moves its lips in sync. It is self-hosted and runs on CPU, with no GPU and no paid voice API.
It started in June as a weekend experiment that ran once on a laptop, and grew into a small studio with a voice library, a history of the last 50 generations and voice tuning.
The goal is to learn how text-to-speech really works so it can be added to the author's RAG chatbot, Mnemosyne, and later to a Memorial App where people leave messages for their families in their own voice, which is why consent and privacy safeguards are built in from the start.
Setup
- Frontend: React + Vite served by nginx, mobile-first PWA, avatar rendered in the browser
- API: Node/Express with Swagger docs at /api/docs
- Worker: Python process running Coqui TTS (idiap/coqui-ai-TTS) with the YourTTS multilingual model (English, French, Brazilian Portuguese)
- All three started with one docker compose up; configuration in one .env file
- Optional: OpenRouter for writing or polishing the script text only
How it works
- One Python worker stays alive; Node sends one job per line on stdin and the worker answers one JSON result per line on stdout, so the model loads once.
- The worker redirects sys.stdout to stderr so Coqui and PyTorch progress bars don't corrupt the JSON stream.
- A Node queue runs jobs one at a time, matches results by id, and restarts the worker if a job exceeds JOB_TIMEOUT_SECONDS (600 by default, enough for the first-run model download of about 425 MB).
- Speed, expressiveness and variation map to the VITS attributes length_scale, inference_noise_scale and inference_noise_scale_dp, and are restored after each request.
Results & numbers
- The original per-request Python process reloaded the model every time and doubled RAM with two requests; the single warm worker removed that.
- Uploaded samples, converted copies and generated WAVs are deleted after every request, including failed and timed-out ones; library and history live only in the browser.
Gotchas
- On a CPU, two syntheses in parallel each run at half speed and use twice the memory, so a queue does about the same work with less risk.
- Behind nginx every request looks like it comes from the proxy; setting Express trust proxy to exactly one hop makes rate limits count real clients.
- Anyone who can open the app can replace the saved OpenRouter key, so keep Echo on a private network.
- Browser features that need HTTPS need a fallback.
“Only script text ever goes to OpenRouter, and only when you use Write text or Polish wording.”— jbcanillo
Do it yourself
- Clone github.com/jbcanillo/echo and fill in the .env file.
- Run docker compose up to start the frontend, API and Python worker.
- Record or upload a short voice sample and tick the consent box.
- Type a script and generate; tune speed, expressiveness and variation in Settings.
Similar setups
Morning Sloth: Gemma 4 on an Arduino UNO Q triages Gmail overnight and shows one LED face
Muhammad Murtuza Hussain runs Gemma 4 E2B in llama.cpp on an Arduino UNO Q's own CPU to read his Gmail overnight and show whether anything needs him as a sloth face on the board's LED matrix.
Curatarr: a household media curator for Plex or Jellyfin that runs only on local Ollama
A self-hosted curator that builds a taste profile per household member, recommends and proposes deletions with a written case for each, and sends every prompt to Ollama on your own GPU.
A self-hosted llama.cpp endpoint on three 16 GB GPUs with presets.ini and Docker
Theo Dufort shares the Compose file and 60-line presets.ini behind his private OpenAI-compatible endpoint: a 27B coding model at 132K context and a 26B MoE chat model.
A private OpenAI-compatible LLM API on an AMD GPU with llama.cpp
A Vietnamese developer's notes on building llama.cpp for AMD cards, choosing between Vulkan and ROCm, and running llama-server as a locked-down systemd service that existing OpenAI SDK code can call.