Fresh Piper/LibriTTS voice needs a page reload after first download #31
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#31
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?
Symptom
After downloading a voice for the first time, the first synthesis fails with:
Reloading the page makes the same voice work.
Root cause
piper-tts-web@1.0.5'sdownload()startswriteBlob(url, await fetchBlob(...))without awaiting it, so it resolves while the ONNX/config writes are still in flight. The firstpredict()reads a partial/empty model blob. A reload gives the write time to finish.Fix
await writeBlob(...)for both model and config (asserted, so a version bump fails loudly).TtsSession._instanceafter a download, so a failed first session cannot be reused.Commit
bb8e001.Verification
Still reproduces after
bb8e001(awaiting the OPFS writes + resetting the Piper session). The missingawaitwas a real bug, but not the whole cause. Next step: local DSH session with browser/CDP access, inspect the actual OPFS blob size beforeInferenceSession.createand compare a reloaded vs fresh-download path. Keep open; handoff context in #30.Verified fixed on the 2026-11-06 build. The awaited OPFS writes plus the session reset resolved the fresh-download failure; re-tested after download without reload.