## Root cause: voice not appearing + poor Russian quality
1. Mounting gpu/tts/config over /app/config created an EMPTY directory,
overwriting the Docker image's built-in voice_to_speaker.yaml. Custom
voices uploaded via the API were saved to this empty dir, but the
default voices (alloy, nova, etc.) disappeared.
2. XTTSv2 (tts-1-hd) speaks Russian with an accent, wrong stress,
swallows letters. It's English-trained multilingual — not ideal for
Russian.
## Fix
### Custom entrypoint (gpu/tts/entrypoint.sh)
Instead of mounting an empty dir over /app/config, we use a custom
entrypoint that:
1. On first run, checks if voice_to_speaker.yaml exists in /app/config/
2. If not — tries to copy defaults from the Docker image
3. If that fails — creates a default config with:
- Piper English voices (alloy, echo, fable, onyx, nova, shimmer)
- Piper Russian voices (irina, denis) ← NEW
- XTTS voices (alloy, echo, fable, onyx, nova, shimmer)
4. Also creates empty pre_process_map.yaml if missing
5. Then exec's the original python /app/app.py
### Piper Russian voices
- Added irina (female) and denis (male) to the default config
- Created download-ru-voices.sh script that downloads:
irina, denis, dmitri, ruslan from HuggingFace (rhasspy/piper-voices)
- These are NATIVE Russian-trained voices — no accent, correct stress
- Use with model 'tts-1' (NOT 'tts-1-hd')
### compose.yaml
- Added mount: gpu/tts/entrypoint.sh → /app/custom-entrypoint.sh
- Changed entrypoint to use custom-entrypoint.sh
### TTSTab UI
- Added 'Russian voices' info section explaining:
- tts-1 with irina/denis = natural Russian, no accent
- tts-1-hd with XTTS = less natural for Russian
- How to download Piper voices: sh gpu/tts/download-ru-voices.sh
### /api/tts/generate
- Accepts optional 'language' field (passed through to openedai-speech)
- Better error messages
## After merge
1. Build and recreate:
docker compose --profile tts up -d --force-recreate tts
2. Download Russian Piper voices:
sh gpu/tts/download-ru-voices.sh
3. Restart TTS again (so it picks up the voices):
docker compose --profile tts restart tts
4. In TTS tab:
- Model: tts-1 (Piper)
- Voice: irina (female) or denis (male)
- Type Russian text → natural, no accent!
Version → 0.9.0
- compose.yaml: mount gpu/tts/config → /app/config for voice_to_speaker.yaml
- /api/tts/upload-voice: creates/updates voice_to_speaker.yaml with new voice entry
- TTSTab: language selector (default Russian), passed to API
- /api/tts/generate: arrayBuffer instead of streaming for reliability
## Fixes
### 1. TTS logs in Logs tab
Added 'tts' to the logs target selector in the Logs tab. Now you can
stream docker logs from the TTS container.
### 2. TTS generate fetch failed
Changed /api/tts/generate from streaming res.body directly to
res.arrayBuffer() first, then returning the buffer. Next.js sometimes
cuts off streaming responses from server-side fetch — buffering avoids
this.
Also improved error messages:
- ECONNREFUSED / fetch failed → 'TTS container is not running...'
- ENOTFOUND → 'TTS container not found on Docker network...'
### 3. Russian voice accent
Built-in voices (alloy, nova, shimmer) are English-trained and will
speak Russian with an accent. Added a prominent hint in the TTS tab
explaining that for natural Russian, you need to upload a custom WAV
sample of a Russian speaker.
## Version → 0.8.2
## Problem
'TPS и TPS Prefill как-то слабовато обновляются' — /slots endpoint
doesn't return per-slot timings without --perf flag. Without it, the
Perf tab shows 'No per-token timings' even during generation.
## Fix
Added `perf: boolean` to DashboardConfig (default: true).
- buildLlamaExtraArgs: emits `--perf` when enabled
- parseLlamaExtraArgs: parses `--perf` / `--no-perf`
- mergeConfig: includes perf field
- ConfigTab: new 'Perf timings' toggle in Performance flags section
with hint 'Per-slot TPS/TTFT in /slots (needed for Perf tab)'
With --perf enabled, /slots returns real-time timings:
timings: {
prompt_n, prompt_ms, prompt_per_second,
predicted_n, predicted_ms, predicted_per_second,
cache_hit_rate
}
These update every 1.5s while the Perf tab is polling.
## Version → 0.8.1
## What
New TTS tab in the dashboard for text-to-speech generation.
### Backend
- `GET /api/tts/voices` — proxies openedai-speech /v1/audio/voices
- `POST /api/tts/generate` — proxies /v1/audio/speech, streams audio back
- `POST /api/tts/upload-voice` — uploads custom voice sample (WAV/MP3/FLAC)
to gpu/tts/voices/ for XTTSv2 voice cloning
- `GET /api/tts/upload-voice` — lists voice files on disk
### Frontend — TTSTab component
- **Start/Stop/Restart TTS** buttons (uses /api/services/tts)
- **Model select**: tts-1 (Piper, faster) / tts-1-hd (XTTSv2, better quality)
- **Voice select**: lists available voices from /api/tts/voices
- **Format select**: MP3 / WAV / Opus / FLAC
- **Speed slider**: 0.25x — 4.0x
- **Text input**: multi-line, char count, Ctrl+Enter to generate
- **Audio output**: inline audio player + download link
- **Custom voice upload**: drag a WAV sample → saved to gpu/tts/voices/
→ restart TTS to apply. XTTSv2 supports Russian.
### Recommended Russian voices
For natural Russian female voices with XTTSv2:
1. Find a clean 10-20s WAV sample of a female Russian speaker
(mono, 22050 Hz, no background noise)
2. Upload via the 'Upload voice sample' button
3. Restart TTS
4. Select the new voice from the dropdown
5. Generate with Russian text
Good sources for voice samples:
- Record yourself or a friend
- Use a clip from a Russian audiobook (lib.ru)
- Use a clip from a Russian podcast
The built-in 'nova' and 'shimmer' voices (female-sounding) also work
with Russian text on tts-1-hd, though they're English-trained.
## Version → 0.8.0
## After merge
```sh
git pull && sh build.sh
docker compose up -d --force-recreate dashboard
docker compose --profile tts up -d tts
```
Open TTS tab → Start TTS → type Russian text → Generate.
## Problems fixed
### 1. Model select didn't use subdirectories
ConfigTab's model Select used m.name (just 'model.gguf') instead of
m.relativePath ('Qwen3-VL/model.gguf'). When the user selected a model
from a subdir, the config stored just the filename — llama.cpp would
look for /models/model.gguf instead of /models/Qwen3-VL/model.gguf.
**Fix:** Select uses m.relativePath everywhere (model + draft + mmproj).
Also filters by kind: only base models in model Select, only mtp/draft
in draft Select, only mmproj in mmproj Select. Shows subdir/ prefix
in the dropdown.
### 2. mmproj select missing from ConfigTab
User asked: 'mmproj нужна настройка еще на самой странице конфигов'
**Fix:** Added a new 'Multimodal projector (mmproj)' section in
ConfigTab with a Select dropdown. Lists files with kind='mmproj' (or
all files as fallback if no mmproj files detected). Shows the
resulting --mmproj /models/<path> line when set.
### 3. Perf tab shows NaN and '?' everywhere
- 'Ctx usage: NaN / 50176' — slots[].n_past was undefined → NaN in reduce
- 'Default sampling: temp: ? ...' — /props didn't return
default_generation_settings (or named differently)
- 'Total ctx: —' — /props didn't return n_context
- 'slot #0 ctx: /50176' — n_past was undefined
**Fix:**
- NaN-safe: all slot field access uses typeof checks or ?? '?'
- Try multiple key names: default_generation_settings || generation_settings,
total_slots || n_slots, n_context || n_ctx_total, has_multimodal ||
mmproj_path || is_multimodal
- Added '▶ Raw /props + /slots JSON' collapsible section at the bottom
of Overview — shows the raw JSON from both endpoints so the user (and
I) can see what llama.cpp actually returns. This is critical for
debugging — llama.cpp changes field names across versions.
### 4. Version bump to 0.6.0
Updated DASHBOARD_VERSION to '0.6.0' so the user can verify the update
took effect (footer shows v0.6.0, /api/debug returns version: '0.6.0').
## After merge
```sh
git pull && sh build.sh
docker compose up -d --force-recreate dashboard model-worker
```
Check footer — should show v0.6.0. If it shows v0.5.0, the container
didn't rebuild (try docker compose build dashboard && docker compose
up -d --force-recreate dashboard).
For Perf tab debugging: open the '▶ Raw /props + /slots JSON' section
and share the output — that'll show exactly what llama.cpp returns.
## What
1. **Version display** — user reported 'ни одно изменение с дашбордом не увидел'.
Added DASHBOARD_VERSION constant (0.5.0) shown in the footer as 'v0.5.0'.
Also returned in /api/debug so user can verify the update took effect via
`curl http://gpu-node:8090/api/debug | jq .version`.
2. **Simplify subdir** — user said '<user>___<repo> не нужно, просто <repo>'.
Changed download subdir from 'user___repo' to just 'repo'. So
huggingface.co/user/Qwen3-VL/resolve/main/model.gguf → subdir='Qwen3-VL'
(was 'user___Qwen3-VL').
3. **Includes all changes from PR #14** (mmproj, subdirs, auto-categorize,
perf overview, comfy total size, wake dashboard fix) — this branch
merges feat/multi-fixes + adds versioning + simplifies subdir.
## After merge
```sh
git pull && sh build.sh
docker compose up -d --force-recreate dashboard model-worker
```
Check the footer — should show 'v0.5.0'. If it doesn't, the update didn't
take effect.