Build the settings page: engines, voices, downloads, playback #12

Closed
opened 2026-10-25 14:58:17 +00:00 by dsh · 1 comment
Owner

Goal

Make the plugin usable without editing localStorage by hand: a real settings page with engine, voice, download manager and playback controls.

Scope

  • Engine dropdown (Piper initially; other engines appear when present), voice dropdown repopulated per engine, unavailable engines shown disabled with a reason. Default voice: en_US-lessac-medium.
  • Voice preview: a "Preview" button next to the voice selector speaks this exact line through the selected voice: "Hi! I'm your DeepSeek Harness. I hope you find the perfect voice for me." Must work before any real turn, and stop/replay cleanly.
  • British-English voices (operator choice, catalogue voices — no custom code): en_GB-alan-medium, en_GB-alba-medium, en_GB-cori-medium (single speaker), en_GB-semaine-medium (4 speakers), en_GB-vctk-medium (109 speakers). Semaine/vctk use the speaker picker from #23; until it lands they speak speaker 0.
  • Custom voices / GLaDOS: #23 is now in M2. Add the settings section for custom-voice import and the GLaDOS preset (download button, CC BY 4.0 attribution, checksum), wired to the #23 adapter. Never a hidden download; nothing bundled.
  • LibriTTS is not in scope (operator decision 2026-10-25).
  • Local model manager: per-voice status (not cached / cached / downloading), "Download" with progress, "Test voice", "Purge".
  • Playback: rate 0.5–2.0, volume, auto-play toggle, output device note.
  • Save/restore from localStorage under dsh-whale-noises.*; validate/normalize; corrupt storage falls back to defaults without breaking the page.
  • No host round-trip: settings must work on a remote/Tailscale page (no configForms dependency).
  • Locale strings in locale/en.json; German optional later.

Acceptance

  • A new user can install, open the tab, pick a voice, download it, hit Preview, and hear the test line — without console or file edits.
  • Every control round-trips after reload; unsupported engines do not break the page.
  • Default voice is en_US-lessac-medium; switching to a German voice previews in German; British voices preview correctly.
  • GLaDOS appears as a custom voice with attribution and downloads only on click.

Notes

  • Depends on #2, #8, #10; coordinates with #23 (same milestone). Cloud engine deferred (#14); key privacy deferred (#15). Operator decisions: #22.
  • Verified voice sources and constraints: #23 (GLaDOS CC BY 4.0, 63.5 MB, sha256 pinned; en_GB-ritts-medium does not exist).
## Goal Make the plugin usable without editing `localStorage` by hand: a real settings page with engine, voice, download manager and playback controls. ## Scope - [ ] Engine dropdown (Piper initially; other engines appear when present), voice dropdown repopulated per engine, unavailable engines shown disabled with a reason. Default voice: `en_US-lessac-medium`. - [ ] **Voice preview:** a "Preview" button next to the voice selector speaks this exact line through the selected voice: *"Hi! I'm your DeepSeek Harness. I hope you find the perfect voice for me."* Must work before any real turn, and stop/replay cleanly. - [ ] **British-English voices** (operator choice, catalogue voices — no custom code): `en_GB-alan-medium`, `en_GB-alba-medium`, `en_GB-cori-medium` (single speaker), `en_GB-semaine-medium` (4 speakers), `en_GB-vctk-medium` (109 speakers). Semaine/vctk use the speaker picker from #23; until it lands they speak speaker 0. - [ ] **Custom voices / GLaDOS:** #23 is now in M2. Add the settings section for custom-voice import and the GLaDOS preset (download button, CC BY 4.0 attribution, checksum), wired to the #23 adapter. Never a hidden download; nothing bundled. - [ ] LibriTTS is **not** in scope (operator decision 2026-10-25). - [ ] Local model manager: per-voice status (not cached / cached / downloading), "Download" with progress, "Test voice", "Purge". - [ ] Playback: rate 0.5–2.0, volume, auto-play toggle, output device note. - [ ] Save/restore from `localStorage` under `dsh-whale-noises.*`; validate/normalize; corrupt storage falls back to defaults without breaking the page. - [ ] No host round-trip: settings must work on a remote/Tailscale page (no `configForms` dependency). - [ ] Locale strings in `locale/en.json`; German optional later. ## Acceptance - A new user can install, open the tab, pick a voice, download it, hit Preview, and hear the test line — without console or file edits. - Every control round-trips after reload; unsupported engines do not break the page. - Default voice is `en_US-lessac-medium`; switching to a German voice previews in German; British voices preview correctly. - GLaDOS appears as a custom voice with attribution and downloads only on click. ## Notes - Depends on #2, #8, #10; coordinates with #23 (same milestone). Cloud engine deferred (#14); key privacy deferred (#15). Operator decisions: #22. - Verified voice sources and constraints: #23 (GLaDOS CC BY 4.0, 63.5 MB, sha256 pinned; `en_GB-ritts-medium` does not exist).
Author
Owner

Delivered: engine/voice selectors, previews, downloads, volume, auto-read/mode, favourites and storage diagnostics are all in the settings page. Locale strings remain a small follow-up.

Delivered: engine/voice selectors, previews, downloads, volume, auto-read/mode, favourites and storage diagnostics are all in the settings page. Locale strings remain a small follow-up.
dsh closed this issue 2026-11-06 04:36:20 +00:00
Sign in to join this conversation.
No description provided.