Custom/community voices (GLaDOS) and multi-speaker support #23
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#23
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
Let a user add a Piper-format ONNX voice the official catalog does not ship — GLaDOS — and pick a speaker for multi-speaker models. This is the path to the operator's requested GLaDOS default without this repo redistributing a fan model of a copyrighted character. Pulled forward to M2 (operator, 2026-10-25).
Verified sources (2026-10-25)
GLaDOS — usable
DavesArmoury/GLaDOS_TTS, licence CC BY 4.0 (attribution required), piper-format model trained by the author.https://huggingface.co/DavesArmoury/GLaDOS_TTS/resolve/main/glados_piper_medium.onnx— 63,511,038 bytes, sha256b35a07fa6fc788ec4ad637ec98b74d66f06e664bbb4366b4035d1deaac3308d3..../glados_piper_medium.onnx.json— 7,089 bytes, sha25677a103377c971e87bfac6a839beb0de95433f38acf1fb92c201dcdc72862f422;sample_rate 22050,phoneme_type espeak,espeak.voice en-us,num_symbols 256,num_speakers 1, phoneme map present. Standard VITS/Piper.resolvereturnsaccess-control-allow-origin: *on the final response — browser fetch works.systemofapwne/piper-en_US-glados-high: no licence field, files aremodel.onnx+config.json(not piper.onnx.json) — do not use without the operator confirming licence/shape."Ritts"
The supplied
en_GB-ritts-mediumpath does not exist. Operator decision: ship the real British catalogue voices instead —en_GB-alan-medium,en_GB-alba-medium,en_GB-cori-medium(single speaker), plusen_GB-semaine-medium(4 speakers) anden_GB-vctk-medium(109 speakers). LibriTTS is not in scope unless asked later.Technical blocker (verified in the packages)
Both
@mintplex-labs/piper-tts-web@1.0.5and@realtimex/piper-tts-web@1.1.1hardcode the model host and a voice map:(
piper-tts-web.js:13,17mintplex;:13,294-296realtimex.) They also hardcodespeakerId = 0(:388/:342), so no speaker picker. A custom voice cannot be passed to either library as-is — the custom-voice work must include the direct ONNX path.Scope
.onnx+.onnx.jsonfrom arbitrary pinned URLs, phonemize withpiper_phonemizewasm (the package exportscreatePiperPhonemize), runonnxruntime-web(pinned 1.18.x), produce PCM/WAV. This is also the fork-death mitigation for #10.sample_rate,phoneme_type,num_symbols,num_speakers, phoneme map); cache in OPFS; "custom" badge; delete.num_speakers > 1; persist the choice. Needed foren_GB-semaine-medium(4) anden_GB-vctk-medium(109), and it unlocks libritts later.Acceptance
Notes
GLaDOS + LibriTTS (Ritts) implemented in
e21dbb6, awaiting the operator's browser test.piper-tts-web@1.0.5: custom model/config URLs, per-voice OPFS names, and__PIPER_SPEAKER_ID__instead of hardcoded speaker 0. Every replacement is asserted, so a version bump fails the build.piper-custom.js. Post-download hash verification is the next hardening step.Needed from operator: the numeric LibriTTS speaker id for “Layla Deeps” (0–903). The repo also ships
samples/speaker_<n>.mp3; I can add a “preview this speaker” button so IDs can be auditioned.