Curated voice catalogue with download-on-selection #26

Closed
opened 2026-10-27 20:25:45 +00:00 by dsh · 2 comments
Owner

Goal

One engine-agnostic voice catalogue in the settings page, so every engine (Piper now; Kokoro, GLaDOS, Phonon next) exposes a curated handpicked list of voices with download-on-selection, and user-imported voices can join later.

Behaviour

  • Settings: engine picker → voice list for that engine. Each voice shows label, language, size and licence/source.
  • Selecting a voice is the download action: choose it, see progress, then it is cached and used. No hidden download on page load or on first auto-read.
  • Downloaded state is visible; a cached voice switches instantly. Re-selecting the active voice does not re-download.
  • Curated lists are code/manifest data (curated: true), not fetched at runtime; upstream URLs and sizes pinned (D6).
  • Engine adapter contract already supports listVoices() / prepare(); this issue adds the catalogue metadata, UI and persistence on top.
  • Voice choice persists per engine (dsh-whale-noises.settings), with a sensible default per engine.
  • Unavailable/offline voices fail loudly and keep the previous voice selected.

Later (separate)

  • Custom voices: import ONNX + config, validate, store in OPFS, list under My voices (#23 for Piper/GLaDOS).

Acceptance

  • Piper: curated list (default lessac, German thorsten, five British) selectable; selecting a not-yet-downloaded voice starts one visible download and then speaks it.
  • Switching between two cached voices is instant and never leaves the old voice loaded (Piper singleton reset).
  • Kokoro/GLaDOS can plug in by adding catalogue entries + an engine adapter, without touching the settings UI.
  • No download occurs for a voice that is merely visible in the list.
## Goal One engine-agnostic **voice catalogue** in the settings page, so every engine (Piper now; Kokoro, GLaDOS, Phonon next) exposes a **curated handpicked list** of voices with download-on-selection, and user-imported voices can join later. ## Behaviour - Settings: engine picker → voice list for that engine. Each voice shows label, language, size and licence/source. - **Selecting a voice is the download action**: choose it, see progress, then it is cached and used. No hidden download on page load or on first auto-read. - Downloaded state is visible; a cached voice switches instantly. Re-selecting the active voice does not re-download. - Curated lists are code/manifest data (`curated: true`), not fetched at runtime; upstream URLs and sizes pinned (D6). - Engine adapter contract already supports `listVoices()` / `prepare()`; this issue adds the catalogue metadata, UI and persistence on top. - Voice choice persists per engine (`dsh-whale-noises.settings`), with a sensible default per engine. - Unavailable/offline voices fail loudly and keep the previous voice selected. ## Later (separate) - Custom voices: import ONNX + config, validate, store in OPFS, list under *My voices* (#23 for Piper/GLaDOS). ## Acceptance - Piper: curated list (default lessac, German thorsten, five British) selectable; selecting a not-yet-downloaded voice starts one visible download and then speaks it. - Switching between two cached voices is instant and never leaves the old voice loaded (Piper singleton reset). - Kokoro/GLaDOS can plug in by adding catalogue entries + an engine adapter, without touching the settings UI. - No download occurs for a voice that is merely visible in the list.
Author
Owner

Multilingual catalogue landed in 2b198eb.

  • 26 curated Piper voices, 9 languages: English US/UK, German, Spanish, French, Russian, Czech, Chinese, Italian, Polish, Arabic, Turkish.
  • Each entry carries gender, languageName, quality and the exact upstream ONNX size (verified by HEAD against rhasspy/piper-voices); all ids exist in piper-tts-web's PATH_MAP, so the existing worker downloads them.
  • Settings: Voice filter (All / Female / Male) + voice list grouped by language, showing gender and quality. The selected voice stays visible even when the filter would hide it.
  • First-run copy now shows the selected voice's real size (e.g. Eva K. ≈ 21 MB, medium voices ≈ 63 MB).

Notes from the attached list: es_AR-daniela-high and zh_CN-xiao_ya-medium are not in the library's PATH_MAP (skipped); tr_TR-fettah/fahrettin 404 upstream (skipped), so Turkish uses tr_TR-dfki-medium (gender unverified → listed as unknown, only under All).

149 tests green.

**Multilingual catalogue landed** in `2b198eb`. - **26 curated Piper voices, 9 languages**: English US/UK, German, Spanish, French, Russian, Czech, Chinese, Italian, Polish, Arabic, Turkish. - Each entry carries `gender`, `languageName`, `quality` and the exact upstream ONNX size (verified by HEAD against `rhasspy/piper-voices`); all ids exist in `piper-tts-web`'s PATH_MAP, so the existing worker downloads them. - Settings: **Voice filter** (All / Female / Male) + voice list grouped by language, showing gender and quality. The selected voice stays visible even when the filter would hide it. - First-run copy now shows the selected voice's real size (e.g. Eva K. ≈ 21 MB, medium voices ≈ 63 MB). Notes from the attached list: `es_AR-daniela-high` and `zh_CN-xiao_ya-medium` are **not** in the library's PATH_MAP (skipped); `tr_TR-fettah/fahrettin` 404 upstream (skipped), so Turkish uses `tr_TR-dfki-medium` (gender unverified → listed as *unknown*, only under All). 149 tests green.
Author
Owner

Delivered: curated catalogues for Piper, LibriTTS and Phonon with download-on-selection and no load-time downloads.

Delivered: curated catalogues for Piper, LibriTTS and Phonon with download-on-selection and no load-time downloads.
dsh closed this issue 2026-11-06 04:36:08 +00:00
Sign in to join this conversation.
No description provided.