4.1 KiB
Qwen1.7B voice cloning in Deck — 2026-10-13
User requested existing Qwen1.7B as an additional voice tool on Athena Deck. No new model weights, Python environments, private voices or external GUI services were downloaded/installed. Helper's Piper service was not changed.
Implementation and UI
Existing Qwen/Qwen3-TTS-12Hz-1.7B-Base, pinned revision
fd4b254389122332181a7c3db7f27e918eec64e3, is reused from the installed TTSRuntime.
Its config confirmed tts_model_type=base, tts_model_size=1b7 and a speaker encoder.
The older CustomVoice package also present is not used for cloning.
New profile: Qwen1.7B Stimmklonen, category Voice. A new catalogue metadata entry/symlink points at the same physical TTS weight. The complete Base folder, including speech tokenizer, is linked to the worker session. A marker avoids recreating a deliberately deleted clone profile on each restart. Existing voice endpoint selection remains unchanged; this profile is available through Deck's signed-in GUI without replacing the active OmniVoice selection.
Open Stimmwerkzeuge → Testen, select Qwen1.7B Stimmklonen, upload a WAV, enter the new text, optionally enter the exact transcript of the reference, choose language and GPU, then Stimme erzeugen. WAV playback/download appears on completion. The existing 1000-character text and 512-MiB reference validation are reused. With transcript, official in-context cloning is used; without it, x-vector-only mode transfers speaker identity without the reference's full prosody. No arbitrary new generation-token limit is added.
qwen_clone_worker.py uses the installed official qwen-tts API, offline local
files, CUDA bfloat16/SDPA. It is managed by Deck's existing serial voice scheduler:
a voice job releases Deck's LLM GPU allocation, weights remain for another voice
job, and the next chat/profile/mode switch unloads the voice worker. No simultaneous
private model processes or standalone public Gradio server are started.
Reference files are deleted by the existing finally cleanup; text/reference contents
are not logged. Own output WAV files remain accessible by job ID.
Actual tests
49 relevant Python tests passed, including rejection of CustomVoice/wrong revision, reference requirement before GPU admission, shared-weight symlink registration, staging the complete existing package, and existing TTS/VoxCPM/OmniVoice behavior. JavaScript syntax checked.
Two real requests were submitted through the authenticated Deck GUI, using the same synthetic Piper Thorsten reference from the Helper test. Output text: “Dies ist der Test der geklonten Stimme. Die vorhandenen Modellgewichte werden wiederverwendet.” Reference transcript exactly matched the generated test recording. No private user's voice was read or uploaded.
| Run | Total job time | Output | Sample rate | GPU |
|---|---|---|---|---|
| First (load + generation) | 20.58 s | 4.64 s | 24000 Hz | RTX3060 |
| Second, resident model | 6.08 s | 4.64 s | 24000 Hz | RTX3060 |
Both reported complete and showed a playback control/download in the GUI. These prove functioning reference-conditioned synthesis, not a measured perceptual voice-similarity score. RX470/Helper Qwen0.6B timings are not comparable to this test.
Native installation / restore
No new dependencies: uses native TTSRuntime's pinned qwen-tts/PyTorch environment
and Base package already described in deploy/tts-requirements.lock and STUDIO.md.
deploy/install.py explicitly includes the new worker. Existing native server
startup, GPU scheduler and backup paths apply. Restore must include profile/catalogue
metadata, runtime active marker, Base package plus speech tokenizer and the existing
TTS environment (or recreate it through the pinned TTSRuntime recipe).
Voice catalogue link points inside the existing managed state root.
No weights, keys or private speech are in Git. Fresh-host restore is not claimed.
Application update used the existing manifest/installer, preserving all mounts,
ports, profiles, tokens and audio policies. Idle request/voice-state checks preceded
updates. Final image: athena-deck-standalone:qwen-clone-final-20261013.