Prepare pinned Humaneness voice conversion runtime and API integration

This commit is contained in:
Mikei386 committed 2026-10-19 13:56:49 +02:00
1 parent 0659967f36
commit 7cf12d4fd1
22 files changed
+693 -18

No files matched your search

+77
View File
@@ -0,0 +1,77 @@
# Humaneness Voice Converter runtime
Upstream model: `laion/Humaneness-Voice-Converter`, revision
`952ef56c945763be50432738e31a32c30b359619`. This is actual audio-to-audio
conversion, not STT/TTS. Upstream inference code and weights are unmodified.
The fixed CLI accepts 1–30 second mono source and target WAV; a clean5–10s
reference is recommended. Input timing/content and style are used directly.
Exact pitch, every pause, word, identity and emotion are not guaranteed.
No independent Qwen/ElevenLabs quality equivalence is claimed.
## Provisioning (native or Deck container)
Requires Python3.12, venv/pip, FFmpeg, CUDA-compatible NVIDIA driver and a CUDA
PyTorch2.9.1 runtime for inference. The tested preparation uses Deck's
Python3.12.3; native Debian must explicitly provide compatible Python3.12 and
`python3.12-venv`, FFmpeg and the NVIDIA driver. These must not be assumed to
come from another model/service. No new system service is required: Deck owns
the short-lived per-job model process.
1. Set `STATE` to the native Deck state root, or the configured container's
persistent state root **inside** that container. Set `DECK_USER` to its real
service user. Create `$STATE/humaneness-runtime` owned by that user, mode0700.
2. Copy `bootstrap.py`, `assets.json`, `upstream-requirements.txt` and
`requirements.lock` there from this exact Git revision. As that user run:
`CUDA_VISIBLE_DEVICES='' python3.12 "$STATE/humaneness-runtime/bootstrap.py"`.
3. This creates an isolated venv, downloads only the pinned public assets,
checks their SHA256/Git blob hashes and runs a complete CPU import. GPU is
hidden throughout preparation. Check `prepare-status.json` for `complete`;
`ready` is written only after success. Keep `verified-assets.json` and lock
with deployment evidence. The first resolved dependency set is recorded in
the committed lock; Chatterbox is installed with `--no-deps` as upstream
requires because its old dependency metadata conflicts with the tested stack.
4. Deck startup registers a model-library link and creates the initial profile
`Humaneness Voice Conversion` (`humaneness-vc`) once. Publication remains a
normal GUI action under the API endpoint; there is no implicit token or
access grant. Start Stimmatelier and choose that profile.
Current preparation used a disposable CPU-only container based on the existing
Deck image, with only this runtime directory mounted, no GPU,2CPU/6GiB RAM.
Remove that preparation container after acceptance. It is not an operational
service or a runtime dependency. Native provisioning follows the same script.
Venv interpreter paths must match the executing Python installation; rebuild
the venv from the recipe when OS/Python changes. Do not copy it between hosts.
## Execution and API
The existing Deck FIFO scheduler waits for or rejects busy GPU work; it never
kills an active LLM request. Conversion then evicts idle models, uses RTX3060
with at least8.5GiB free VRAM and6GiB Deck RAM, and releases its process/GPU at
completion. CPU Qwen's warm worker is separate. Settings: one candidate, BF16,
10 upstream flow steps, upstream seed. These controls are fixed in this initial
integration; the generic voice-profile TTS parameters do not control conversion.
There is no hidden live mode, automatic model download, external speech API,
Docker socket or new credential. Inference is offline after preparation.
GUI: `/api/v1/conversion/start`, status `/api/v1/conversion`, audio
`/api/v1/conversion/audio?id=<id>`, cancellation `/api/v1/conversion/cancel`.
Normal Deck session/CSRF rules apply. Multipart fields: `profile_id`, `source`,
`reference`. Both files: PCM16 mono WAV16/24/48kHz,1–30s, ≤16MiB each.
Published service API (existing Bearer token):
`GET /v1/audio/voice-conversions/models` and
`POST /v1/audio/voice-conversions`, fields `model=humaneness-vc`, `source`,
`reference`. Returns `audio/wav`. These are **Deck extensions**, not standard
OpenAI TTS routes. The model is intentionally absent from text-to-speech model
lists; a client must explicitly support audio-to-audio conversion.
Original source/reference files are deleted after success, failure or cancel.
The output WAV, technical stderr and non-text job metadata remain in
`$STATE/humaneness-jobs`. This folder is included in the encrypted userdata
backup. Model/runtime files are reconstructible from Git and the fixed public
manifest and excluded from pre-update private-state snapshots. Preserve profiles,
API configuration and private output jobs using Deck's normal backups. This
recipe has not been accepted as a full fresh-Debian-host restore.
CC BY4.0 applies to LAION additions/weights; upstream Chatterbox MIT notices are
retained in the downloaded model's NOTICE. Dependencies keep their own licences.
+90
View File
@@ -0,0 +1,90 @@
{
"repo": "laion/Humaneness-Voice-Converter",
"revision": "952ef56c945763be50432738e31a32c30b359619",
"files": [
{
"file": "NOTICE.md",
"size": 1209,
"sha256": null,
"git_sha1": "375e93fed23db8c248d5fef98ca6b01d12447ec6"
},
{
"file": "README.md",
"size": 10860,
"sha256": null,
"git_sha1": "6348db9b6386451dc11e854fb2b2a2c2e9f1a82e"
},
{
"file": "SPEED.md",
"size": 5599,
"sha256": null,
"git_sha1": "56d133e4fdf868ae8fc18d285d978f7f2628858c"
},
{
"file": "conditioning/ears-medium/classes.json",
"size": 8046,
"sha256": null,
"git_sha1": "cdeee81c5608f62313b5a1bfd878d3922760726e"
},
{
"file": "conditioning/ears-medium/medium/config.json",
"size": 1981,
"sha256": null,
"git_sha1": "a34ea32d1fbea0adc94b8026cb686d544e96d358"
},
{
"file": "conditioning/ears-medium/medium/model.safetensors",
"size": 388447068,
"sha256": "00f30de0f7d656d2a1e86bdc629673ff8b576532e1263b02bcebdfc2763e54f1",
"git_sha1": "71edf230d621d0b156bcf8a5c9b66d3829982969"
},
{
"file": "conditioning/ears-medium/medium/preprocessor_config.json",
"size": 184990,
"sha256": null,
"git_sha1": "c2048dfa9fd94a052e62e908d2c4dfb18534b4d2"
},
{
"file": "conditioning/ears-medium/model.py",
"size": 10203,
"sha256": null,
"git_sha1": "9080bdb80574da8aa1a071f7dba4b7c3268c06db"
},
{
"file": "conditioning/ears-medium/training_normalization.json",
"size": 14945,
"sha256": null,
"git_sha1": "48c2374aedc17ad1ce670ea8fe31a56de8b6c886"
},
{
"file": "conditioning/reward_calibration.json",
"size": 500,
"sha256": null,
"git_sha1": "4bceba02f94b7a11649c7d26c5ee0c7876b3b461"
},
{
"file": "conditioning/score_order.json",
"size": 2416,
"sha256": null,
"git_sha1": "96c12dfc475a1205c5bb9dc2be3c697ef8b4a76e"
},
{
"file": "infer.py",
"size": 15291,
"sha256": null,
"git_sha1": "84c830f94a93f6e0c60262fcad0e579c3312dda1"
},
{
"file": "model.safetensors",
"size": 1056773004,
"sha256": "45bbf058ea2a82f1840dc6161f01be929217d28843003f5354336c81b11ea3dd",
"git_sha1": "f4190a1792074fa5184fa72d0c83c2a35f79578e"
},
{
"file": "requirements.txt",
"size": 540,
"sha256": null,
"git_sha1": "e90f0b9421a08cef8b6499f9fc2111e7e42fa77f"
}
]
}
+33
View File
@@ -0,0 +1,33 @@
import hashlib,json,os,subprocess,sys,time,urllib.request
from pathlib import Path
root=Path(__file__).resolve().parent
os.environ.update(CUDA_VISIBLE_DEVICES='',OMP_NUM_THREADS='2',HF_HOME=str(root/'hf-cache'),HF_HUB_DISABLE_TELEMETRY='1',PIP_DISABLE_PIP_VERSION_CHECK='1')
def status(state,phase):
p=root/'prepare-status.tmp';p.write_text(json.dumps(dict(state=state,phase=phase,time=time.time())));p.replace(root/'prepare-status.json')
def run(args):
with (root/'prepare.log').open('ab') as f:subprocess.run([str(x) for x in args],stdout=f,stderr=f,check=True)
try:
status('running','Isolierte Python-Laufzeit erstellen')
run([sys.executable,'-m','venv',root/'python']);python=root/'python/bin/python'
status('running','Offizielle CUDA-Torch-Wheels installieren; GPU unsichtbar')
run([python,'-m','pip','install','--no-cache-dir','torch==2.9.1','torchaudio==2.9.1','--index-url','https://download.pytorch.org/whl/cu128'])
status('running','Hersteller-Abhängigkeiten installieren')
req=(root/'requirements.lock').read_text() if (root/'requirements.lock').exists() else (root/'upstream-requirements.txt').read_text();(root/'requirements.txt').write_text('\n'.join(l for l in req.splitlines() if not l.startswith(('torch==','torchaudio==','chatterbox-tts=='))))
run([python,'-m','pip','install','--no-cache-dir','-r',root/'requirements.txt'])
run([python,'-m','pip','install','--no-cache-dir','--no-deps','chatterbox-tts==0.1.7'])
status('running','Öffentliche Modellgewichte mit Prüfsummen laden')
manifest=json.loads((root/'assets.json').read_text());model=root/'model'
for a in manifest['files']:
target=model/a['file'];target.parent.mkdir(parents=True,exist_ok=True)
h=hashlib.sha256();g=hashlib.sha1(('blob '+str(a['size'])+'\0').encode())
with urllib.request.urlopen('https://huggingface.co/'+manifest['repo']+'/resolve/'+manifest['revision']+'/'+a['file'],timeout=120) as r,target.open('wb') as f:
while chunk:=r.read(4*1024**2):f.write(chunk);h.update(chunk);g.update(chunk)
if target.stat().st_size!=a['size'] or (h.hexdigest()!=a['sha256'] if a['sha256'] else g.hexdigest()!=a['git_sha1']):raise ValueError('Gewichtsprüfung fehlgeschlagen: '+a['file'])
a['verified_sha256']=h.hexdigest()
(root/'verified-assets.json').write_text(json.dumps(manifest,indent=2))
os.environ.update(HF_HUB_OFFLINE='1',TRANSFORMERS_OFFLINE='1')
status('running','CPU-Import und vollständige Modelle prüfen; keine GPU-Nutzung')
run([python,'-c',"import sys,torch;from pathlib import Path;sys.path.insert(0,str(Path(sys.argv[1])/'model'));import infer;assert not torch.cuda.is_available();m=infer.load_converter(Path(sys.argv[1])/'model',torch.device('cpu'));e=infer.load_ears(Path(sys.argv[1])/'model/conditioning/ears-medium',torch.device('cpu'));print('CPU_IMPORT_OK')",root])
with (root/'requirements.lock').open('wb') as f:subprocess.run([str(python),'-m','pip','freeze'],stdout=f,check=True)
(root/'ready').write_text(manifest['revision']);status('complete','Gewichte geprüft und Laufzeit CPU-seitig bereit; noch kein Profil aktiviert')
except Exception as e:status('failed',type(e).__name__+': '+str(e)[:350]);raise
+1
View File
@@ -0,0 +1 @@
[]
+93
View File
@@ -0,0 +1,93 @@
annotated-doc==0.0.5
antlr4-python3-runtime==4.9.3
anyio==4.15.1
certifi==2026.10.18
cffi==2.1.1
cfgv==3.5.0
charset-normalizer==3.5.2
chatterbox-tts==0.1.7
click==8.5.0
cloudpickle==3.1.2
conformer==0.3.2
decorator==5.3.1
diffusers==0.40.0
distlib==0.4.4
einops==0.8.2
filelock==3.32.3
fsspec==2026.7.0
h11==0.16.0
hf-xet==1.7.0
httpcore==1.0.9
httpx==0.28.1
huggingface_hub==1.29.0
identify==2.6.20
idna==3.20
importlib_metadata==9.0.1
Jinja2==3.1.6
joblib==1.6.0
lazy-loader==0.6
librosa==1.0.0
llvmlite==0.50.0
markdown-it-py==4.2.0
MarkupSafe==3.0.3
mdurl==0.1.2
ml_dtypes==0.6.0
mpmath==1.3.0
msgpack==1.2.3
narwhals==2.27.1
networkx==3.6.1
nodeenv==1.11.0
numba==0.68.0
numpy==2.3.2
nvidia-cublas-cu12==12.8.4.1
nvidia-cuda-cupti-cu12==12.8.90
nvidia-cuda-nvrtc-cu12==12.8.93
nvidia-cuda-runtime-cu12==12.8.90
nvidia-cudnn-cu12==9.10.2.21
nvidia-cufft-cu12==11.3.3.83
nvidia-cufile-cu12==1.13.1.3
nvidia-curand-cu12==10.3.9.90
nvidia-cusolver-cu12==11.7.3.90
nvidia-cusparse-cu12==12.5.8.93
nvidia-cusparselt-cu12==0.7.1
nvidia-nccl-cu12==2.27.5
nvidia-nvjitlink-cu12==12.8.93
nvidia-nvshmem-cu12==3.3.20
nvidia-nvtx-cu12==12.8.90
omegaconf==2.3.1
onnx==1.23.2
packaging==26.3
pillow==13.0.0
platformdirs==4.13.5
pooch==1.9.0
pre_commit==4.7.0
protobuf==7.36.2
pycparser==3.11
Pygments==2.21.0
python-discovery==1.6.4
PyYAML==6.0.3
regex==2026.9.29
requests==2.34.2
resemble-perth==1.0.1
rich==15.0.0
s3tokenizer==0.3.0
safetensors==0.8.0
scikit-learn==1.9.1
scipy==1.18.1
setuptools==78.1.0
shellingham==1.5.4
soundfile==0.14.0
soxr==1.1.0
sympy==1.14.0
threadpoolctl==3.7.0
tokenizers==0.22.2
torch==2.9.1+cu128
torchaudio==2.9.1+cu128
tqdm==4.70.1
transformers==5.14.1
triton==3.5.1
typer==0.27.3
typing_extensions==4.16.0
urllib3==2.8.0
virtualenv==21.14.11
zipp==4.1.1
@@ -0,0 +1,18 @@
# Research environment snapshot, not a resolver-tested one-line installer.
# Chatterbox 0.1.7 metadata pins older Torch/Transformers on Python 3.13;
# install it with --no-deps after installing these tested runtime packages.
# Install a CUDA-compatible PyTorch wheel for your platform first.
torch==2.9.1
torchaudio==2.9.1
transformers==5.14.1
numpy==2.3.2
safetensors==0.8.0
scipy==1.18.1
soundfile==0.14.0
librosa==1.0.0
huggingface-hub==1.29.0
s3tokenizer==0.3.0
diffusers==0.40.0
conformer==0.3.2
omegaconf==2.3.1
resemble-perth==1.0.1
+2 -2
View File
@@ -15,7 +15,7 @@ import urllib.request
ROOT = Path(__file__).resolve().parent.parent
LABEL = 'de.casaderoll.athena-deck.standalone'
FILES = ['stimmatelier_proxy.py','qwen_native.py','qwen_native_worker.py','qwen_native_runtime.py','deploy/qwen-native-requirements.lock','deploy/import_qwen_native.py','deploy/install_strata_vision.py','assets/tts-presets/bundle.safetensors','assets/tts-presets/bundle.json','deploy/applio-requirements.lock','deploy/activate_applio.py','deploy/import_applio.py','deploy/backup_applio_data.py','applio.py','applio_runtime.py','applio_worker.py','applio-ui.js','deploy/activate_acestep.py','acestep_models.py','deploy/import_acestep.py','deploy/acestep-web/Dockerfile','deploy/acestep-web/app.py','deploy/acestep-web/index.html','acestep.py','acestep_worker.py','acestep_runtime.py','acestep-ui.js','deploy/acestep-requirements.lock','deploy/omnivoice-requirements.lock','omnivoice_runtime.py','omnivoice_worker.py','deploy/voice-web/Dockerfile','deploy/voice-web/base.Dockerfile','deploy/voice-web/bridge.py','deploy/patch_yue2_residency.py','embeddings.py','voxcpm_test.py','voxcpm_worker.py','qwen_clone_worker.py','voice-ui.js','voxcpm_runtime.py','voxcpm-ui.js','deploy/voxcpm-requirements.lock','network/native.py','deploy/setup_network_helper.py','separator_sources.json','deploy/separator-web/Dockerfile','deploy/separator-web/app.py','deploy/separator-web/index.html','separator.py','separator_runtime.py','separator_worker.py','separator-ui.js','deploy/ladypoly/Dockerfile','deploy/ladypoly/bridge.py','music.py','music-ui.js','audio_cpp_runtime.py','audio-cpp-ui.js','ltx_original_runtime.py','ltx_original_entry.py','video_original.py','ltx-original-ui.js','deploy/ltx-original-requirements.lock','backup.py','backup_codec.py','backup-ui.js','deploy/docker_backup.py','deploy/swarm-ui/Dockerfile','deploy/swarm-ui/patch-source.py','deploy/swarm-ui/proxy.py','deploy/swarm-ui/entrypoint.py','deploy/Dockerfile.app-update','video_comfy.py','video_comfy_node.py','video_comfy_proxy.py','prompt_enhancer.py','prompt_enhancer_worker.py','image_upload.py','audio_policy.py','deploy/tts-requirements.lock','stt.py','parakeet_runtime.py','stt-ui.js','api_compat.py','responses_compat.py','execution_setup.py','pocket.py','pocket_worker.py','pocket_runtime.py','deploy/pocket-requirements.lock','deploy/import_pocket.py','tts_runtime.py','tts_test.py','tts_worker.py','tts-ui.js','auto_test.py','auto-test-ui.js','chat_test.py','chat-test-ui.js','endpoint.py','inference.py','endpoint-ui.js','docker_support.py','docker-ui.js','deploy/docker_helper.py','deploy/setup_docker_helper.py','image_encoder_node.py','image_runtime.py','image_test.py','image-test-ui.js','profiles.py','profiles-ui.js','capacity.py','runtime.py','runtime-ui.js','video.py','video_proxy.py','video-ui.js','catalog.py','hub_auth.py','catalog-ui.js','server.py','auth.py','collect_hardware.py','dashboard_data.py','dashboard_history.py','dashboard-ui.js','dashboard.css','themes.css','deploy/import_dashboard_history.py','index.html','app.js','studio.js','style.css','login.html','login.js','access-ui.js','network-ui.js','network/__init__.py','network/client.py','network/config.py','network/hosts.py','network/policy.py','network/rpc.py','deploy/Dockerfile','deploy/image-requirements.lock']
FILES = ['humaneness.py','humaneness_runtime.py','deploy/humaneness/bootstrap.py','deploy/humaneness/assets.json','deploy/humaneness/upstream-requirements.txt','deploy/humaneness/requirements.lock','deploy/humaneness/component-assets.json','deploy/humaneness/README.md','stimmatelier_proxy.py','qwen_native.py','qwen_native_worker.py','qwen_native_runtime.py','deploy/qwen-native-requirements.lock','deploy/import_qwen_native.py','deploy/install_strata_vision.py','assets/tts-presets/bundle.safetensors','assets/tts-presets/bundle.json','deploy/applio-requirements.lock','deploy/activate_applio.py','deploy/import_applio.py','deploy/backup_applio_data.py','applio.py','applio_runtime.py','applio_worker.py','applio-ui.js','deploy/activate_acestep.py','acestep_models.py','deploy/import_acestep.py','deploy/acestep-web/Dockerfile','deploy/acestep-web/app.py','deploy/acestep-web/index.html','acestep.py','acestep_worker.py','acestep_runtime.py','acestep-ui.js','deploy/acestep-requirements.lock','deploy/omnivoice-requirements.lock','omnivoice_runtime.py','omnivoice_worker.py','deploy/voice-web/Dockerfile','deploy/voice-web/base.Dockerfile','deploy/voice-web/bridge.py','deploy/patch_yue2_residency.py','embeddings.py','voxcpm_test.py','voxcpm_worker.py','qwen_clone_worker.py','voice-ui.js','voxcpm_runtime.py','voxcpm-ui.js','deploy/voxcpm-requirements.lock','network/native.py','deploy/setup_network_helper.py','separator_sources.json','deploy/separator-web/Dockerfile','deploy/separator-web/app.py','deploy/separator-web/index.html','separator.py','separator_runtime.py','separator_worker.py','separator-ui.js','deploy/ladypoly/Dockerfile','deploy/ladypoly/bridge.py','music.py','music-ui.js','audio_cpp_runtime.py','audio-cpp-ui.js','ltx_original_runtime.py','ltx_original_entry.py','video_original.py','ltx-original-ui.js','deploy/ltx-original-requirements.lock','backup.py','backup_codec.py','backup-ui.js','deploy/docker_backup.py','deploy/swarm-ui/Dockerfile','deploy/swarm-ui/patch-source.py','deploy/swarm-ui/proxy.py','deploy/swarm-ui/entrypoint.py','deploy/Dockerfile.app-update','video_comfy.py','video_comfy_node.py','video_comfy_proxy.py','prompt_enhancer.py','prompt_enhancer_worker.py','image_upload.py','audio_policy.py','deploy/tts-requirements.lock','stt.py','parakeet_runtime.py','stt-ui.js','api_compat.py','responses_compat.py','execution_setup.py','pocket.py','pocket_worker.py','pocket_runtime.py','deploy/pocket-requirements.lock','deploy/import_pocket.py','tts_runtime.py','tts_test.py','tts_worker.py','tts-ui.js','auto_test.py','auto-test-ui.js','chat_test.py','chat-test-ui.js','endpoint.py','inference.py','endpoint-ui.js','docker_support.py','docker-ui.js','deploy/docker_helper.py','deploy/setup_docker_helper.py','image_encoder_node.py','image_runtime.py','image_test.py','image-test-ui.js','profiles.py','profiles-ui.js','capacity.py','runtime.py','runtime-ui.js','video.py','video_proxy.py','video-ui.js','catalog.py','hub_auth.py','catalog-ui.js','server.py','auth.py','collect_hardware.py','dashboard_data.py','dashboard_history.py','dashboard-ui.js','dashboard.css','themes.css','deploy/import_dashboard_history.py','index.html','app.js','studio.js','style.css','login.html','login.js','access-ui.js','network-ui.js','network/__init__.py','network/client.py','network/config.py','network/hosts.py','network/policy.py','network/rpc.py','deploy/Dockerfile','deploy/image-requirements.lock']
FILES += ['soulx_singer.py','soulx_singer_runtime.py','soulx-singer-ui.js','deploy/prepare_soulx_singer.py']
@@ -270,7 +270,7 @@ def update(base, rollback=False, force=False, api_ports=None, reuse_runtime=Fals
backup_name=config['name']+'-previous'
if inspect(backup_name):raise RuntimeError('Rückfall-Containername belegt. Keine Änderung ausgeführt.')
stamp=str(time.time_ns())
shutil.copytree(base/'state',base/'backups'/stamp,ignore=shutil.ignore_patterns('stimmatelier-ui','qwen-native-runtime','qwen-native-jobs','strata-runtime','strata-worker','strata-data','strata-ssd','strata-install-src','soulx_singer-runtime','soulx_singer-data','seed_vc-runtime','seed_vc-data','seed_vc-prepare','reference-models','xvc-runtime','xvc-data','xvc-prepare','cache','omni-reference-check.py','omni-cache-clean.py','applio-runtime','applio-data','applio-checkout','applio-runtime.py','import_applio.py','applio-migration.log','acestep-runtime','acestep-jobs','acestep-setup-code','acestep-checkout','acestep-source-files','acestep-test-tmp','music-verification','music-test-temp','music-jobs','music-remix-runtime','separator-runtime','separator-tests','voxcpm-runtime','omnivoice-runtime','voice-worker-check','voice-integration-check','voice-setup-code','audio-cpp-runtime','ltx-original-runtime','original-work','tts-runtime','tts-tests','voice-tests','models','runtime','runtime-verification','image-tests','image-verification','image-verification-*','image-runtime','video-runtime','video-verification','video-verification-*','comfy-work','router-verification-*'))
shutil.copytree(base/'state',base/'backups'/stamp,ignore=shutil.ignore_patterns('humaneness-runtime','humaneness-jobs','stimmatelier-ui','qwen-native-runtime','qwen-native-jobs','strata-runtime','strata-worker','strata-data','strata-ssd','strata-install-src','soulx_singer-runtime','soulx_singer-data','seed_vc-runtime','seed_vc-data','seed_vc-prepare','reference-models','xvc-runtime','xvc-data','xvc-prepare','cache','omni-reference-check.py','omni-cache-clean.py','applio-runtime','applio-data','applio-checkout','applio-runtime.py','import_applio.py','applio-migration.log','acestep-runtime','acestep-jobs','acestep-setup-code','acestep-checkout','acestep-source-files','acestep-test-tmp','music-verification','music-test-temp','music-jobs','music-remix-runtime','separator-runtime','separator-tests','voxcpm-runtime','omnivoice-runtime','voice-worker-check','voice-integration-check','voice-setup-code','audio-cpp-runtime','ltx-original-runtime','original-work','tts-runtime','tts-tests','voice-tests','models','runtime','runtime-verification','image-tests','image-verification','image-verification-*','image-runtime','video-runtime','video-verification','video-verification-*','comfy-work','router-verification-*'))
was_running=previous['State']['Running']
if was_running:run('docker','stop','--time','15',config['name'])
run('docker','rename',config['name'],backup_name)
+1 -1
View File
@@ -23,7 +23,7 @@ def key():
return KEY.read_bytes().strip()+b'\n'
def sources():
names=('qwen-native-jobs','speech-voices','pocket-jobs','soulx_singer-data','legacy-userdata','applio-data','xvc-data','voice-tests','music-jobs','acestep-jobs','separator-tests','image-tests','tts-tests')
names=('humaneness-jobs','qwen-native-jobs','speech-voices','pocket-jobs','soulx_singer-data','legacy-userdata','applio-data','xvc-data','voice-tests','music-jobs','acestep-jobs','separator-tests','image-tests','tts-tests')
roots=[(STATE/n,'deck/'+n) for n in names]+[(STATE/'video/original-work/outputs','deck/video/original-work/outputs'),(STATE/'video/original-work/remote-inputs','deck/video/original-work/remote-inputs'),(STATE/'video/original-work/deskweb','deck/video/original-work/deskweb'),(Path('/opt/athena-ladypoly/data'),'services/ladypoly'),(Path('/opt/athena-deck-docker-apps'),'services/web-studios')]
# Private locally-trained voices have no public replacement source.
for p in (STATE/'models').glob('*/entry.json'):
+23 -1
View File
@@ -1,6 +1,6 @@
# Stimmatelier
Private Qwen speech studio for Athena Deck. German, responsive browser UI with
Private Qwen speech and Humaneness voice-conversion studio for Athena Deck. German, responsive browser UI with
text input, reference WAV, reference recording, source WAV/recording → local STT
→ editable transcript → cloned speech, waveform, playback and WAV download.
No live conversion. Qwen 0.6B Q8 native CPU and 1.7B Base GPU are discovered from
@@ -121,3 +121,25 @@ unit is an installation recipe, not a claim of native fresh-host acceptance.
device microphone recording still requires user acceptance in their browser.
- Deck integration auth/reference/backup/proxy tests passed. No full fresh-host
restore or subjective voice-quality acceptance is implied.
## Direct Voice Conversion
Select **Humaneness Voice Conversion** in the profile menu. Upload or record your
source performance and a target reference; press **Stimme umwandeln**. No text or
STT is involved. Both recordings must be1–30s (target ideally5–10s). Playback
and WAV download use the existing result panel. Microphone capture disables
browser noise suppression, echo cancellation and automatic gain control.
Requires Deck's pinned Humaneness runtime/profile integration. It uses the GPU
scheduler and can unload idle Strata after active requests finish; CPU Qwen
remains separate. The official model attempts to preserve source content/timing
and expression, but does not guarantee exact reproduction of all details or
ElevenLabs/Qwen-equivalent quality. The initial UI also supports the published
Deck-specific `/v1/audio/voice-conversions` API through Deck, not a separate port.
Source/reference inputs are deleted from backend job files at completion/failure/
cancel; output WAVs remain. The native runtime rebuild/backup recipe is maintained
in Athena Deck's `deploy/humaneness/README.md`.
Humaneness deployment status, 2026-10-19: model/runtime and profile prepared on
Athena; activation and GPU/microphone acceptance are pending a production idle
window. The earlier CPU/1.7B acceptance above does not cover this new VC mode.
+5 -5
View File
@@ -3,18 +3,18 @@ const $=id=>document.getElementById(id);let profiles=[],sttId=null,busy=false,re
async function api(path,body){const opts=body?{method:'POST',headers:{'X-Athena-Deck':'1'},body:body instanceof FormData?body:JSON.stringify(body)}:{};if(body&&!(body instanceof FormData))opts.headers['Content-Type']='application/json';const r=await fetch('/api/v1/'+path,opts);if(r.status===401)throw Error('Bitte zuerst in Athena Deck anmelden und diese Seite neu laden.');const d=await r.json();if(!r.ok)throw Error(typeof d.error==='string'?d.error:d.error?.message||'Anfrage fehlgeschlagen.');return d;}
function error(e){$('error').textContent=e.message||String(e);$('error').hidden=false;}
function selected(){return profiles.find(p=>p.id===$('profile').value);}
function update(){const p=selected(),cpu=p?.kind==='audio';$('model-note').textContent=cpu?'0,6B Q8 · CPU · Strata kann geladen bleiben. Eigene Referenzen übernehmen die Stimmfarbe.':'1,7B Base · GPU · Deck entlädt Strata regulär vor der Ausgabe. Mit Referenztranskript kann Qwen auch die Sprechweise besser übernehmen.';$('reference-text').disabled=cpu;$('reference-name').textContent=reference?reference.name:cpu?'Gespeicherte Standardstimme aus Deck':'Für 1,7B bitte eine Referenz hinzufügen';$('count').textContent=$('text').value.length+' / 1000';$('generate').disabled=busy||!!recording||!p||!$('text').value.trim()||$('text').value.length>1000||(!cpu&&!reference);$('transcribe').disabled=busy||!!recording||!source||!sttId;$('profile').disabled=busy||!!recording||!profiles.length;}
function update(){const p=selected(),cpu=p?.kind==='audio',vc=p?.model?.repo==='laion/Humaneness-Voice-Converter';$('model-note').textContent=vc?'Echte Voice Conversion · GPU · Quelle und Zielstimme, ohne Transkription. Sprechweise bleibt möglichst erhalten; keine Garantie für jedes Detail. Quelle und Referenz jeweils 1–30 Sekunden. Strata wird bei Bedarf regulär entladen.':cpu?'0,6B Q8 · CPU · Strata kann geladen bleiben. Eigene Referenzen übernehmen die Stimmfarbe.':'1,7B Base · GPU · Deck entlädt Strata regulär vor der Ausgabe. Mit Referenztranskript kann Qwen auch die Sprechweise besser übernehmen.';$('reference-text').disabled=cpu||vc;$('reference-text').hidden=vc;$('reference-text').previousElementSibling.hidden=vc;$('text').hidden=vc;document.querySelector('label[for="text"]').hidden=vc;$('text').nextElementSibling.hidden=vc;$('text-tab').hidden=vc;$('transcribe').hidden=vc;$('generate').innerHTML=vc?'Stimme umwandeln <span>↗</span>':'Sprache erzeugen <span>↗</span>';if(vc){$('source-panel').hidden=false;$('audio-tab').setAttribute('aria-selected','true');$('text-tab').setAttribute('aria-selected','false');}$('source-panel').querySelector('.hint').textContent=vc?'Originalaufnahme hochladen oder einsprechen. Humaneness wandelt sie direkt in die Referenzstimme um; Text und STT werden nicht benötigt. Bis 30 Sekunden.':'WAV hochladen oder aufnehmen. Danach den erkannten Text prüfen. Timing und Betonung der Originalaufnahme werden nicht exakt übernommen.';$('reference-name').textContent=reference?reference.name:cpu?'Gespeicherte Standardstimme aus Deck':vc?'Bitte eine Zielreferenz hinzufügen':'Für 1,7B bitte eine Referenz hinzufügen';$('count').textContent=$('text').value.length+' / 1000';$('generate').disabled=busy||!!recording||!p||(vc?!source:(!$('text').value.trim()||$('text').value.length>1000))||(!cpu&&!reference);$('transcribe').disabled=busy||!!recording||!source||!sttId;$('profile').disabled=busy||!!recording||!profiles.length;}
function progress(message){$('error').hidden=true;$('empty').hidden=true;$('result').hidden=true;$('progress').hidden=false;$('status').textContent=message;}
function done(){busy=false;$('progress').hidden=true;if($('result').hidden)$('empty').hidden=false;update();}
async function poll(path,id){const deadline=Date.now()+1200000;while(Date.now()<deadline){await new Promise(r=>setTimeout(r,600));const d=await api(path),j=d.job;if(!j||j.id!==id)throw Error('Dieser Auftrag ist nicht mehr aktuell. Ein anderer Auftrag hat den Status ersetzt.');$('status').textContent=j.phase||'Athena arbeitet …';if(j.state==='complete')return j;if(j.state!=='running')throw Error(j.phase||'Auftrag beendet.');}throw Error('Zeitlimit überschritten. Den Auftrag in Deck prüfen.');}
async function normalize(blob,maxSeconds,sampleRate){if(!blob||blob.size>16*1024*1024)throw Error('Bitte eine Aufnahme bis 16 MiB verwenden.');const ctx=new AudioContext({sampleRate});try{const b=await ctx.decodeAudioData(await blob.arrayBuffer());if(b.duration<1||b.duration>maxSeconds)throw Error('Die Aufnahme muss zwischen 1 und '+maxSeconds+' Sekunden lang sein.');const n=b.length,buf=new ArrayBuffer(44+n*2),v=new DataView(buf);function word(pos,s){for(let i=0;i<s.length;i++)v.setUint8(pos+i,s.charCodeAt(i));}word(0,'RIFF');v.setUint32(4,36+n*2,true);word(8,'WAVE');word(12,'fmt ');v.setUint32(16,16,true);v.setUint16(20,1,true);v.setUint16(22,1,true);v.setUint32(24,b.sampleRate,true);v.setUint32(28,b.sampleRate*2,true);v.setUint16(32,2,true);v.setUint16(34,16,true);word(36,'data');v.setUint32(40,n*2,true);const channels=Array.from({length:b.numberOfChannels},(_,i)=>b.getChannelData(i));for(let i=0;i<n;i++){const x=Math.max(-1,Math.min(1,channels.reduce((a,c)=>a+c[i],0)/channels.length));v.setInt16(44+i*2,x<0?x*32768:x*32767,true);}return new File([buf],'aufnahme.wav',{type:'audio/wav'});}finally{await ctx.close();}}
async function setAudio(kind,blob){const audio=await normalize(blob,kind==='reference'?30:120,kind==='reference'?24000:16000);if(kind==='reference')reference=audio;else source=audio;const el=$(kind+'-preview');if(el.dataset.url)URL.revokeObjectURL(el.dataset.url);el.dataset.url=URL.createObjectURL(audio);el.src=el.dataset.url;el.hidden=false;$(kind+'-name').textContent=blob.name||'Mikrofonaufnahme';if(kind==='reference')$('reference-reset').hidden=false;update();}
for(const kind of ['reference','source']){$(kind+'-file').onchange=async e=>{try{if(e.target.files[0])await setAudio(kind,e.target.files[0]);}catch(e){error(e);}};$(kind+'-record').onclick=async()=>{try{if(recording){if(recording.kind===kind)recording.recorder.stop();return;}if(busy)return;if(!window.isSecureContext||!navigator.mediaDevices?.getUserMedia)throw Error('Mikrofon benötigt HTTPS. Bitte das Studio über Athena Deck öffnen.');const stream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:true,noiseSuppression:true}});const type=['audio/webm;codecs=opus','audio/mp4'].find(t=>MediaRecorder.isTypeSupported(t));const recorder=new MediaRecorder(stream,type?{mimeType:type}:{}),chunks=[];recording={kind,recorder};const label=$(kind+'-record').textContent;$(kind+'-record').textContent='■ Aufnahme stoppen';let timer;recorder.ondataavailable=e=>{if(e.data.size)chunks.push(e.data);};recorder.onerror=()=>{stream.getTracks().forEach(t=>t.stop());clearTimeout(timer);recording=null;$(kind+'-record').textContent=label;error(Error('Aufnahme fehlgeschlagen.'));update();};recorder.onstop=async()=>{clearTimeout(timer);stream.getTracks().forEach(t=>t.stop());recording=null;$(kind+'-record').textContent=label;try{await setAudio(kind,new Blob(chunks,{type:recorder.mimeType}));}catch(e){error(e);}update();};recorder.start();timer=setTimeout(()=>{if(recorder.state==='recording')recorder.stop();},(kind==='reference'?29:119)*1000);update();}catch(e){error(e);}};}
async function setAudio(kind,blob){const audio=await normalize(blob,kind==='reference'||selected()?.model?.repo==='laion/Humaneness-Voice-Converter'?30:120,kind==='reference'?24000:16000);if(kind==='reference')reference=audio;else source=audio;const el=$(kind+'-preview');if(el.dataset.url)URL.revokeObjectURL(el.dataset.url);el.dataset.url=URL.createObjectURL(audio);el.src=el.dataset.url;el.hidden=false;$(kind+'-name').textContent=blob.name||'Mikrofonaufnahme';if(kind==='reference')$('reference-reset').hidden=false;update();}
for(const kind of ['reference','source']){$(kind+'-file').onchange=async e=>{try{if(e.target.files[0])await setAudio(kind,e.target.files[0]);}catch(e){error(e);}};$(kind+'-record').onclick=async()=>{try{if(recording){if(recording.kind===kind)recording.recorder.stop();return;}if(busy)return;if(!window.isSecureContext||!navigator.mediaDevices?.getUserMedia)throw Error('Mikrofon benötigt HTTPS. Bitte das Studio über Athena Deck öffnen.');const stream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:false,noiseSuppression:false,autoGainControl:false}});const type=['audio/webm;codecs=opus','audio/mp4'].find(t=>MediaRecorder.isTypeSupported(t));const recorder=new MediaRecorder(stream,type?{mimeType:type}:{}),chunks=[];recording={kind,recorder};const label=$(kind+'-record').textContent;$(kind+'-record').textContent='■ Aufnahme stoppen';let timer;recorder.ondataavailable=e=>{if(e.data.size)chunks.push(e.data);};recorder.onerror=()=>{stream.getTracks().forEach(t=>t.stop());clearTimeout(timer);recording=null;$(kind+'-record').textContent=label;error(Error('Aufnahme fehlgeschlagen.'));update();};recorder.onstop=async()=>{clearTimeout(timer);stream.getTracks().forEach(t=>t.stop());recording=null;$(kind+'-record').textContent=label;try{await setAudio(kind,new Blob(chunks,{type:recorder.mimeType}));}catch(e){error(e);}update();};recorder.start();timer=setTimeout(()=>{if(recorder.state==='recording')recorder.stop();},(kind==='reference'||selected()?.model?.repo==='laion/Humaneness-Voice-Converter'?29:119)*1000);update();}catch(e){error(e);}};}
$('reference-reset').onclick=()=>{if(busy)return;reference=null;$('reference-file').value='';$('reference-preview').hidden=true;$('reference-reset').hidden=true;update();};
for(const [id,show] of [['text-tab',false],['audio-tab',true]])$(id).onclick=()=>{$('text-tab').setAttribute('aria-selected',String(!show));$('audio-tab').setAttribute('aria-selected',String(show));$('source-panel').hidden=!show;};
$('profile').onchange=update;$('text').oninput=update;
$('transcribe').onclick=async()=>{busy=true;update();progress('Aufnahme wird lokal transkribiert …');try{const f=new FormData();f.set('file',source,'aufnahme.wav');f.set('profile_id',sttId);f.set('language','de');const j=await api('stt/start',f),r=await poll('stt',j.id);$('text').value=r.text||'';if($('text').value.length>1000)throw Error('Das Transkript ist länger als 1000 Zeichen. Bitte den Text vor der Ausgabe kürzen.');}catch(e){error(e);}finally{done();}};
async function waveform(blob){const ctx=new AudioContext();try{const b=await ctx.decodeAudioData(await blob.arrayBuffer()),a=b.getChannelData(0),canvas=$('waveform'),c=canvas.getContext('2d');c.clearRect(0,0,600,120);c.strokeStyle='#bd5433';c.lineWidth=2;for(let x=0;x<300;x++){const start=Math.floor(x*a.length/300),end=Math.floor((x+1)*a.length/300);let peak=0;for(let i=start;i<end;i++)peak=Math.max(peak,Math.abs(a[i]));c.beginPath();c.moveTo(x*2,60-peak*52);c.lineTo(x*2,60+peak*52);c.stroke();}}finally{await ctx.close();}}
$('generate').onclick=async()=>{busy=true;update();progress('Deine Stimme wird vorbereitet …');const p=selected(),cpu=p.kind==='audio';try{const f=new FormData();f.set('profile_id',p.id);f.set('text',$('text').value);f.set('language','German');if(reference)f.set('file',reference,'reference.wav');if(cpu)f.set('speaker','default');else{f.set('device','3060');f.set('reference_text',$('reference-text').value);}const j=await api(cpu?'qwen-native/start':'voice/start',f),r=await poll(cpu?'qwen-native':'voice',j.id);const url='/api/v1/'+(cpu?'qwen-native':'voice')+'/audio?id='+encodeURIComponent(j.id);const response=await fetch(url);if(!response.ok)throw Error('Die fertige Ausgabe konnte nicht geladen werden.');const blob=await response.blob();if(outputUrl)URL.revokeObjectURL(outputUrl);outputUrl=URL.createObjectURL(blob);$('output').src=outputUrl;$('download').href=url;$('result-meta').textContent=p.name+' · '+(r.duration?Number(r.duration).toFixed(1)+' Sekunden · ':'')+'WAV';$('result').hidden=false;await waveform(blob);}catch(e){error(e);}finally{done();}};
async function init(){try{const [d,policy]=await Promise.all([api('profiles'),api('audio-policy')]);profiles=d.profiles.filter(p=>p.runnable&&((p.kind==='audio'&&p.model?.repo==='Serveurperso/Qwen3-TTS-GGUF')||(p.kind==='voice'&&p.model?.repo==='Qwen/Qwen3-TTS-12Hz-1.7B-Base'))).sort((a,b)=>(a.kind==='audio'?-1:1)-(b.kind==='audio'?-1:1));const stts=d.profiles.filter(p=>p.kind==='stt'&&p.runnable);sttId=stts.find(p=>p.id===policy.settings.stt.profile_id)?.id||stts[0]?.id;$('profile').replaceChildren(...profiles.map(p=>new Option(p.name,p.id)));if(!profiles.length)throw Error('Kein ausführbares Qwen-Profil gefunden. Bitte in Deck einrichten.');update();}catch(e){error(e);}}
$('generate').onclick=async()=>{busy=true;update();progress('Deine Stimme wird vorbereitet …');const p=selected(),cpu=p.kind==='audio',vc=p.model.repo==='laion/Humaneness-Voice-Converter',path=vc?'conversion':cpu?'qwen-native':'voice';try{const f=new FormData();f.set('profile_id',p.id);if(vc){f.set('source',source,'source.wav');f.set('reference',reference,'reference.wav');}else{f.set('text',$('text').value);f.set('language','German');if(reference)f.set('file',reference,'reference.wav');}if(cpu)f.set('speaker','default');else if(!vc){f.set('device','3060');f.set('reference_text',$('reference-text').value);}const j=await api(path+'/start',f),r=await poll(path,j.id);const url='/api/v1/'+path+'/audio?id='+encodeURIComponent(j.id);const response=await fetch(url);if(!response.ok)throw Error('Die fertige Ausgabe konnte nicht geladen werden.');const blob=await response.blob();if(outputUrl)URL.revokeObjectURL(outputUrl);outputUrl=URL.createObjectURL(blob);$('output').src=outputUrl;$('download').href=url;$('result-meta').textContent=p.name+' · '+(r.source_duration?'Quelle '+Number(r.source_duration).toFixed(2)+'s · Ausgabe ':'')+(r.duration?Number(r.duration).toFixed(r.source_duration?2:1)+' Sekunden · ':'')+'WAV';$('result').hidden=false;await waveform(blob);}catch(e){error(e);}finally{done();}};
async function init(){try{const [d,policy]=await Promise.all([api('profiles'),api('audio-policy')]);profiles=d.profiles.filter(p=>p.runnable&&(p.model?.repo==='laion/Humaneness-Voice-Converter'||(p.kind==='audio'&&p.model?.repo==='Serveurperso/Qwen3-TTS-GGUF')||(p.kind==='voice'&&p.model?.repo==='Qwen/Qwen3-TTS-12Hz-1.7B-Base'))).sort((a,b)=>(a.kind==='audio'?-1:1)-(b.kind==='audio'?-1:1));const stts=d.profiles.filter(p=>p.kind==='stt'&&p.runnable);sttId=stts.find(p=>p.id===policy.settings.stt.profile_id)?.id||stts[0]?.id;$('profile').replaceChildren(...profiles.map(p=>new Option(p.name,p.id)));if(!profiles.length)throw Error('Kein ausführbares Qwen-Profil gefunden. Bitte in Deck einrichten.');update();}catch(e){error(e);}}
init();
+4 -4
View File
@@ -1,6 +1,6 @@
<!doctype html><html lang="de"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Stimmatelier · Qwen</title><link rel="stylesheet" href="style.css"><script src="app.js" defer></script></head><body>
<header><a href="/#services" class="back">← Athena Deck</a><span class="tag">QWEN · STIMMSTUDIO</span><span class="privacy">● Lokal auf Athena</span></header>
<!doctype html><html lang="de"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Stimmatelier · Stimmen</title><link rel="stylesheet" href="style.css"><script src="app.js" defer></script></head><body>
<header><a href="/#services" class="back">← Athena Deck</a><span class="tag">QWEN & VOICE CONVERSION</span><span class="privacy">● Lokal auf Athena</span></header>
<main><div class="hero"><div><p class="eyebrow">DEINE WORTE. DEINE ZIELSTIMME.</p><h1>Stimmatelier<span>.</span></h1><p class="intro">Aus Text wird Stimme. Aus einer Aufnahme werden neue Worte im vertrauten Klang.</p></div><div class="soundmark" aria-hidden="true"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div></div>
<div class="layout"><section class="inputs"><article class="card"><div class="section-title"><span class="number">01</span><h2>Modell & Zielstimme</h2></div><label for="profile">Qwen-Profil</label><select id="profile" disabled><option>Profile werden geladen …</option></select><p id="model-note" class="hint"></p><div class="reference"><div class="row"><h3>Referenzstimme</h3><span class="badge">WAV · 1–30 Sekunden</span></div><p class="hint">Eine klare, ruhige Aufnahme der gewünschten Stimme. Sie bestimmt den Klang, nicht den zu sprechenden Text.</p><label class="upload" for="reference-file">Referenz-WAV auswählen<input id="reference-file" type="file" accept=".wav,audio/wav"></label><div class="mic-row"><button id="reference-record" type="button" class="secondary">● Referenz aufnehmen</button><span id="reference-name" class="hint">Gespeicherte Standardstimme aus Deck</span></div><audio id="reference-preview" controls hidden></audio><button id="reference-reset" class="text-button" type="button" hidden>Referenz entfernen</button><label for="reference-text">Transkript der Referenz <span class="muted">optional · für 1,7B</span></label><textarea id="reference-text" rows="2" placeholder="Was wird in deiner Referenzaufnahme gesagt?"></textarea></div></article>
<div class="layout"><section class="inputs"><article class="card"><div class="section-title"><span class="number">01</span><h2>Modell & Zielstimme</h2></div><label for="profile">Stimmprofil</label><select id="profile" disabled><option>Profile werden geladen …</option></select><p id="model-note" class="hint"></p><div class="reference"><div class="row"><h3>Referenzstimme</h3><span class="badge">WAV · 1–30 Sekunden</span></div><p class="hint">Eine klare, ruhige Aufnahme der gewünschten Stimme. Sie bestimmt den Klang, nicht den zu sprechenden Text.</p><label class="upload" for="reference-file">Referenz-WAV auswählen<input id="reference-file" type="file" accept=".wav,audio/wav"></label><div class="mic-row"><button id="reference-record" type="button" class="secondary">● Referenz aufnehmen</button><span id="reference-name" class="hint">Gespeicherte Standardstimme aus Deck</span></div><audio id="reference-preview" controls hidden></audio><button id="reference-reset" class="text-button" type="button" hidden>Referenz entfernen</button><label for="reference-text">Transkript der Referenz <span class="muted">optional · für 1,7B</span></label><textarea id="reference-text" rows="2" placeholder="Was wird in deiner Referenzaufnahme gesagt?"></textarea></div></article>
<article class="card"><div class="section-title"><span class="number">02</span><h2>Was soll gesprochen werden?</h2></div><div class="tabs" role="tablist" aria-label="Quelle"><button role="tab" id="text-tab" aria-selected="true">Text schreiben</button><button role="tab" id="audio-tab" aria-selected="false">Aufnahme verwenden</button></div><div id="source-panel" hidden><p class="hint">WAV hochladen oder aufnehmen. Danach den erkannten Text prüfen. Timing und Betonung der Originalaufnahme werden nicht exakt übernommen.</p><label class="upload" for="source-file">Sprach-WAV auswählen<input id="source-file" type="file" accept=".wav,audio/wav"></label><div class="mic-row"><button id="source-record" type="button" class="secondary">● Sprache aufnehmen</button><span id="source-name" class="hint">Bis 120 Sekunden</span></div><audio id="source-preview" controls hidden></audio><button id="transcribe" type="button" class="secondary" disabled>Aufnahme in Text umwandeln</button></div><label for="text">Text für die Ausgabe</label><textarea id="text" rows="7" maxlength="1000" placeholder="Schreibe hier deinen Text oder übernimm ihn aus einer Aufnahme …"></textarea><div class="row"><span class="hint">Deutsch · Ausgabe als WAV</span><span id="count" class="hint">0 / 1000</span></div><button id="generate" class="primary" disabled>Sprache erzeugen <span>↗</span></button><p id="error" role="alert" class="error" hidden></p></article></section>
<aside><article class="card output"><div class="section-title"><span class="number">03</span><h2>Deine Ausgabe</h2></div><div id="empty"><div class="empty-icon" aria-hidden="true">◉</div><h3>Hier bekommt dein Text eine Stimme.</h3><p>Wähle ein Profil, ergänze deine Zielstimme und starte die Erzeugung.</p></div><div id="progress" hidden><span class="spinner"></span><p id="status" role="status">Wird vorbereitet …</p><small>Du kannst diese Seite geöffnet lassen. Athena verarbeitet den Auftrag lokal.</small></div><div id="result" hidden><span class="success">FERTIG ZUM ANHÖREN</span><canvas id="waveform" width="600" height="120" aria-label="Wellenform der erzeugten Sprache"></canvas><audio id="output" controls></audio><a id="download" class="download" download="stimmatelier.wav">WAV herunterladen ↓</a><p id="result-meta" class="hint"></p></div></article><p class="footnote">Referenzaufnahmen werden nur für den Auftrag an Deck übertragen und anschließend aus dessen Arbeitsdateien entfernt. Ausgaben bleiben in Deck verfügbar. Keine Cloud-Dienste, keine zusätzlichen Modellkopien.</p></aside></div></main><footer>STIMMATELIER <span>Ein Studio für deine Qwen-Stimmen.</span></footer></body></html>
<aside><article class="card output"><div class="section-title"><span class="number">03</span><h2>Deine Ausgabe</h2></div><div id="empty"><div class="empty-icon" aria-hidden="true">◉</div><h3>Hier bekommt dein Text eine Stimme.</h3><p>Wähle ein Profil, ergänze deine Zielstimme und starte die Erzeugung.</p></div><div id="progress" hidden><span class="spinner"></span><p id="status" role="status">Wird vorbereitet …</p><small>Du kannst diese Seite geöffnet lassen. Athena verarbeitet den Auftrag lokal.</small></div><div id="result" hidden><span class="success">FERTIG ZUM ANHÖREN</span><canvas id="waveform" width="600" height="120" aria-label="Wellenform der erzeugten Sprache"></canvas><audio id="output" controls></audio><a id="download" class="download" download="stimmatelier.wav">WAV herunterladen ↓</a><p id="result-meta" class="hint"></p></div></article><p class="footnote">Referenzaufnahmen werden nur für den Auftrag an Deck übertragen und anschließend aus dessen Arbeitsdateien entfernt. Ausgaben bleiben in Deck verfügbar. Keine Cloud-Dienste, keine zusätzlichen Modellkopien.</p></aside></div></main><footer>STIMMATELIER <span>Deine Worte. Deine Sprechweise. Deine Zielstimme.</span></footer></body></html>