## Problems
1. 'some_other_voice_you_want' in voice list — placeholder from openedai-speech default config
2. KeyError: 'irina' — user selected tts-1-hd but irina is only in tts-1 (Piper)
3. Custom uploaded voices not picked up after restart
## Fixes
### entrypoint.sh — ALWAYS writes config
Previously only wrote config if it didn't exist. Now ALWAYS writes
(overwrites image defaults that have placeholders). Then scans
/app/voices/ for custom .wav files and adds them as XTTS voices
with language: ru. No manual config editing needed.
### /api/tts/voices — 3 improvements
1. Filters placeholder voices (some_other_voice_you_want, your_voice, etc.)
2. Returns model info per voice: tts-1 (Piper), tts-1-hd (XTTS), or both
3. Parses voice_to_speaker.yaml to know which section each voice belongs to
### TTSTab — auto model switch + voice labels
- Voice dropdown shows '(Piper)' or '(XTTS)' or '(both)' after each voice
- When user selects a Piper-only voice (irina), auto-switches model to tts-1
- When user selects an XTTS-only voice (custom upload), auto-switches to tts-1-hd
### /api/tts/upload-voice — simplified
No longer modifies voice_to_speaker.yaml. Just saves the .wav file.
The entrypoint scans /app/voices/ on startup and auto-adds .wav files
as XTTS voices. This is simpler and more reliable.
## Version → 0.9.3
## 3 fixes
### 1. TTS logs not working in dashboard
The stream route (/api/services/[role]/stream) had its own VALID_ROLES
list that was missing 'tts'. Added 'tts' to the list.
### 2. Dashboard doesn't show voices
/api/tts/voices only queried the TTS API (http://tts:8000/v1/audio/voices).
If TTS was not running or the API didn't return custom voices, the list
was empty.
Rewrote /api/tts/voices to use 3 sources:
1. TTS API (if running)
2. voice_to_speaker.yaml (parse voice names from config file)
3. Scan gpu/tts/voices/ directory for .onnx and .wav files
- .onnx files: ru_RU-irina-medium.onnx → 'irina'
- .wav files: myvoice.wav → 'myvoice'
4. Always include defaults (alloy, echo, fable, onyx, nova, shimmer)
### 3. Voices not loading on page open
refreshVoices() was only called when ttsRunning was true. Changed to
always fetch on mount — the API now works even when TTS is stopped
because it reads from config files and directory.
## Version → 0.9.2
## After merge
```sh
git pull && sh build.sh
docker compose up -d --force-recreate dashboard
```
TTS tab should now show irina, denis, dmitri, ruslan in the voice
dropdown (even if TTS is stopped). TTS logs should work in Logs tab.
Two bugs fixed:
1. Entrypoint used 'python /app/app.py' but openedai-speech uses
'bash startup.sh'. Fixed to: exec bash /app/startup.sh
2. Piper voice download URLs were wrong. HuggingFace path is:
ru/ru_RU/<voice>/medium/ru_RU-<voice>-medium.onnx
(was: ru_RU/<voice>/medium/...)
Also added file size check — if <1000 bytes, download failed.
3. entrypoint.sh now includes all 4 Russian voices in default config:
irina, denis, dmitri, ruslan
After merge:
git pull
rm -rf gpu/tts/voices/ru_RU-* # delete broken 15-byte files
sh gpu/tts/download-ru-voices.sh # re-download with correct URLs
docker compose --profile tts up -d --force-recreate tts
## 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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.