Repository navigation
feat(server): serve attested Drama voice catalogs - #1135
Closed
plotarmordev wants to merge 4 commits into
Closed
plotarmordev wants to merge 4 commits into
plotarmordev wants to merge 4 commits into
Conversation
This was referenced Oct 21, 2026
Owner
|
Landed on main with #1153 (23573d3, b7f4666, 02e9660, 35b2afb), thank you @plotarmordev. Opt-in attested voice catalogs are served with - Synthema, Ash's AI Assistant. |
5 of 9 tasks
Owner
|
This shipped in TensorFold 1.1.4: https://github.com/ashhart/TensorFold/releases/tag/v1.1.4 Thank you @plotarmordev for the contribution. - Synthema, Ash's AI Assistant. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Drama speech serving can load an opt-in catalog of reference voices (
serve --voices DIR [--default-voice NAME], requestvoice,GET /v1/voices); without--voicesthe built-in voice and its prompt are unchanged. Named voices go through the family'sprompt.build, the same builderdrama3-generateuses.Consent: each voice file must state
source.kind(synthetic,selforconsented) and a nonemptysource.note. A file without both refuses startup. This is the operator's own statement. The server cannot check it, so it is not proof of consent. Notes are never returned by the API. Voices come only from the directory read at startup, never from request paths or request audio. This PR ships no tool for making voice files.This is independent of #1119 and #1120 and can be reviewed in any order.
Receipt
73249c5acbc412bfee22d94309cf46b659b6409bond1018b318fb51981c4a18f12e40269a4d3ee9713. Native CUDA binaries built from this branch, with no MLX or PyTorch, on one CUDA GPU in an aarch64 Linux host. The checkpoint isfishaudio/drama-3with itscodec.pth. The GPU receipts do not record the checkpoint revision, the driver or the library versions. "Stock" is thev1.1.1release, andgit diff v1.1.1 d1018b31 -- zig build.zig build.zig.zonis empty.tools/bench_concurrent.py --alone --serialortoken_shaagainst"draft": false: speech returns PCM, not tokens, so PCM is compared instead. Every server ran with--parallel 1 --no-drafts --prompt-cache-gib 0 --context 4096andTENSORFOLD_SEED_SALT=0, and every input was "A small cloud passes."--voicesequals stock byte for byte (196,608 bytes each, same SHA-256).drama3-generate --encode(22 frames) and served from a catalog file withsource.kindsynthetic.drama3-generatewas run with the same codes and transcript,--max-frames 1024, temperature 1, top-k 30, top-p 0.9, and the seed the server derives from the 73 prompt rows. The HTTP and CLI outputs have the same length (135,168 bytes) and differ by at most 1 LSB per sample. They are not byte-equal. The writers quantize differently: the server truncates float samples toward zero (@intFromFloat(clamp(x) * 32767),quantizeInPlacein zig/src/server/speech.zig), while the CLI rounds them (@round,pcm16in zig/src/families/drama3/wav.zig). Equal float samples can therefore differ by 1 LSB. This comparison does not establish equality before quantization. The difference is consistent with truncation versus rounding but does not prove that is the only cause. This PR changes neither writer.tools/bench_openai.py: not measured. Decoding and GPU kernels are unchanged. Peak device memory was the same for stock, the built-in voice and the synthetic voice.ttft_sfromtools/bench_cache.py --require-coldon a long prompt, or "n/a" with the reason when the change cannot reach prompt processing: not measured. Built-in voice prompt rows are unchanged. A named voice adds its reference rows to the prompt, and the existing prefill processes them.73249c5a. The CUDA-host gate was rerun with a separate cache after an initial run reused cached results.zig fmt --check build.zig zig: clean.zig build test -j8 --summary all: 211/211 steps; 2964/2978 tests passed, 0 failed, 14 skipped. The server suite passed 511/511, including the five new tests.CUDA_VISIBLE_DEVICES= zig build test-cuda-host -j8 --summary all: 129/129 steps; 2183/2188 tests passed, 0 failed, 5 skipped.CUDA_VISIBLE_DEVICES= zig build test-kernel-contract -j8 --summary all: 11/11 steps; 65/65 tests passed.CUDA_VISIBLE_DEVICES= zig build test-golden -j8 --summary all: 5/5 steps. Server cases: 306/319 equal with 13 known differences. Security cases: 26/26 equal. 0 unexpected differences.bench_openai/bench_cachetimings, were not run. No recorded human voice was used.Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo.SUMMARYline is in the receipt.