Chat voice selector: favourites, workspace mapping, 3-state mode toggle #28
Labels
No labels
NaNs
area/audio
area/build
area/docs
area/dsh
area/engine
area/security
area/ui
needs-operator
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-whale-noises#28
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Picking a voice from the chat composer, and the mode toggle next to it.
Engine selector stays
Correction to an earlier review note: the settings keep the engine selector. Three engines (Piper / Kokoro / Phonon) with different voice sets and different download/config paths — engine is a legitimate configuration axis there.
The invalid-state problem does not exist because the chat selector lists favourites only, and a favourite is an
(engine, voice)pair. Picking a favourite implies its engine. No cross-product, no validation code.Favourites
wn_speaksource attribution.Precedence (three levels, explicit)
settings default→workspace default→session override(what the composer selector sets, sticky).Voice is identity, not a per-message parameter. Do not put a voice selector on individual messages — it would break "hear who is talking". The composer selector is session-scoped.
Mode toggle
off → auto → tool, click cycles. Settings choose the starting state.Auto Read/Tool) in tiny type, so the control does not inherit its meaning from a setting elsewhere.Acceptance
Feasibility review: the UI/state model is right, but engine switching is the hidden cost.
(engine, voice)pairs are clean and remove cross-product validation. The composer chip (effective voice) is a good call.off → auto → toolneeds a settings migration from the currentautoRead: boolean.toolonly exists after #27; until then cycleoff ↔ autoand leavetooldisabled rather than pretending.conversation.input.left/.right; please keep the tiny text label (Auto Read/Tool) — the colour-only toggle would be a usability trap.Sequencing: #29 (delete) and the #27 tool spike both touch this state; I'd land the mode migration + favourites within the active engine first, then add workspace/tool once #27 is proven.
Refined composer/voice spec (operator, 2026-11-04).
wn_speakannouncements are spoken, auto-read is off — blue;Read aloud,Tool-speak,Silent) for accessibility/clarity, not colour alone.ctx.sessionsprojectscwd; key the mapping by workspace cwd), so e.g. the PAD project can bede_DE-glados-medium("GLaDeeps") while the default stays the operator's go-to LibriTTS voice 0. Resolution order: workspace mapping → global default voice. Both announcements and auto-read use the resolved voice.Related: #27 keeps the protocol/queue work (
announcepreemptingreport, tool-speak gating, debug-log removal); the persistent tray is #32.Slice 3a landed (
e820477): the 3-state voice mode.wn_speak; silent speaks nothing, but still collects every note in the tool-talk panel (the panel is the record). Announcement handling short-circuits after recording; auto-read only runs in read mode.autoRead: true/falsesettings migrate toread/toolso nobody's behaviour changes on upgrade.npm run checkgreen. Screenshots:docs/design/voice-mode-composer.png,voice-mode-mobile.png.Remaining slice 3b: favourite voices (star in settings), composer voice picker, per-workspace voice mapping (PAD → GLaDOS, default → LibriTTS 0) — this needs per-item engine multiplexing because the mapping crosses engines (Piper vs LibriTTS), with model/worker switching at speak time.
Slice 3b landed (
cc76175) — #28 is complete.(engine, voice)pairs, and stores the choice as a workspace override (sessioncwd) — sticky per project, Default entry clears it.de_DE-glados-medium, global defaultlibritts:0;announcement handling,speak start,audio chunkand replay all reportedengine=piper, voice=de_DE-glados-mediumwhilesettings.enginestayedlibritts. Screenshots:voice-picker-glados.png,voice-settings-cards.png,voice-picker-mobile.png.npm run checkgreen.Acceptance 1–4 satisfied. Remaining #27 leftovers (announce→report preemption, removing temporary debug logs) are tracked there — not part of this issue.