MVP acceptance: a completed turn is spoken by Piper #11
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#11
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?
Goal
M1 is done only when the whole path is demonstrated on a real browser and the host budget is proven unchanged — not when the units pass.
Scope
performance.memoryor DevTools); host RSS before enable / during speech / after (ps -o rss= -p $(pgrep -f 'dsh web')).Acceptance
Notes
Ready for the first listen. Plugin is installed in the
webprofile (operator confirmed); bundle3b8cab8contains the embedded Piper worker.Test steps:
Record here: browser, whether audio played, download time, console errors (if any), and host RSS before/during/after (
ps -o rss= -p $(pgrep -f 'dsh web')). If it fails, paste the browser console error — the likely suspects are OPFS access, the ORT/phonemize CDN fetch, or worker startup.First test: download succeeded, no sound. The worker/OPFS path works; the silence is either synthesis (empty PCM), a suspended AudioContext, or scheduling.
Shipped diagnostics in
a92840a+HEAD:AudioContext.resume()and reports its state.Asked the operator to hard-reload, play the tone, then preview, and report the diagnostics + console output.
First audio confirmed by the operator — preview and auto-read work. Two follow-ups found and fixed in
HEAD:piper-tts-web@1.0.5caches oneTtsSessioninTtsSession._instance, and constructing it with a newvoiceIdonly rewrites the field — the loaded ONNX model stays the first voice.src/worker/session.jsnow resets the singleton when the requested voice changes, so the nextpredict()loads the new model.isDownloaded(selected)first and refuses with a settings hint (rule 3: no silent downloads).Also added silence/context diagnostics, a speaker tone test, and a
Voicefield in the diagnostics, to catch any remaining audio-path issues.115 tests, CI green. Awaiting the operator's voice-switch check (select German → preview should download the German voice once, then speak German).
First audio confirmed by the operator (preview + auto-read).
Fixed in
db450cf:piper-tts-web@1.0.5caching a singletonTtsSessioninTtsSession._instance: constructing it with a newvoiceIdonly rewrites the field, the loaded ONNX model stays the first voice.src/worker/session.jsnow drops the singleton when the requested voice changes, so the nextpredict()loads the new model.isDownloaded(selected)and refuses with a settings hint (rule 3).Voicefield to diagnostics + a speaker tone test.115 tests, CI green. Operator to verify: select German, preview (downloads once), hear German.
Met: completed turns are spoken end-to-end with Piper, and manual/auto/tool speech paths are all in use.