Add CPU Pocket TTS profiles and a stable speech endpoint alias

This commit is contained in:
Mikei386 committed 2026-10-17 22:28:36 +02:00
1 parent 0edf132056
commit 96c7f5452b
21 files changed
+611 -25

No files matched your search

+5 -1
View File
@@ -17,7 +17,7 @@ COPY deploy/image-requirements.lock /app/deploy/image-requirements.lock
COPY deploy/acestep-requirements.lock /app/deploy/acestep-requirements.lock
COPY deploy/tts-requirements.lock /app/deploy/tts-requirements.lock
COPY deploy/ltx-original-requirements.lock /app/deploy/ltx-original-requirements.lock
COPY soulx_singer.py soulx_singer_runtime.py soulx-singer-ui.js cuda_overlay.py remix.py remix_runtime.py remix_worker.py remix_sources.json clearvoice_worker.py xvc.py xvc_runtime.py xvc_sources.json xvc-ui.js applio.py applio_runtime.py applio_worker.py applio-ui.js acestep_models.py acestep.py acestep_worker.py acestep_runtime.py acestep-ui.js embeddings.py voxcpm_test.py voxcpm_worker.py voxcpm_runtime.py separator_sources.json separator.py separator_runtime.py separator_worker.py music.py audio_cpp_runtime.py ltx_original_runtime.py ltx_original_entry.py video_original.py backup.py backup_codec.py audio_policy.py prompt_enhancer.py prompt_enhancer_worker.py api_compat.py responses_compat.py stt.py execution_setup.py tts_runtime.py tts_test.py tts_worker.py auto_test.py chat_test.py endpoint.py inference.py docker_support.py image_encoder_node.py image_runtime.py image_test.py image_upload.py profiles.py capacity.py server.py runtime.py video.py video_proxy.py video_comfy.py video_comfy_node.py video_comfy_proxy.py catalog.py hub_auth.py auth.py collect_hardware.py dashboard_data.py dashboard_history.py /app/
COPY soulx_singer.py soulx_singer_runtime.py soulx-singer-ui.js cuda_overlay.py remix.py remix_runtime.py remix_worker.py remix_sources.json clearvoice_worker.py xvc.py xvc_runtime.py xvc_sources.json xvc-ui.js applio.py applio_runtime.py applio_worker.py applio-ui.js acestep_models.py acestep.py acestep_worker.py acestep_runtime.py acestep-ui.js embeddings.py voxcpm_test.py voxcpm_worker.py voxcpm_runtime.py separator_sources.json separator.py separator_runtime.py separator_worker.py music.py audio_cpp_runtime.py ltx_original_runtime.py ltx_original_entry.py video_original.py backup.py backup_codec.py audio_policy.py prompt_enhancer.py prompt_enhancer_worker.py api_compat.py responses_compat.py stt.py execution_setup.py pocket.py pocket_worker.py pocket_runtime.py tts_runtime.py tts_test.py tts_worker.py auto_test.py chat_test.py endpoint.py inference.py docker_support.py image_encoder_node.py image_runtime.py image_test.py image_upload.py profiles.py capacity.py server.py runtime.py video.py video_proxy.py video_comfy.py video_comfy_node.py video_comfy_proxy.py catalog.py hub_auth.py auth.py collect_hardware.py dashboard_data.py dashboard_history.py /app/
COPY --chmod=0644 voice-ui.js voxcpm-ui.js separator-ui.js music-ui.js audio-cpp-ui.js ltx-original-ui.js backup-ui.js video-ui.js stt-ui.js tts-ui.js auto-test-ui.js chat-test-ui.js endpoint-ui.js docker-ui.js image-test-ui.js profiles-ui.js dashboard-ui.js index.html app.js studio.js runtime-ui.js catalog-ui.js style.css dashboard.css themes.css login.html login.js access-ui.js network-ui.js /app/
COPY deploy/docker_backup.py /app/deploy/docker_backup.py
COPY deploy/xvc-requirements.lock /app/deploy/xvc-requirements.lock
@@ -42,3 +42,7 @@ COPY deploy/patch_yue2_residency.py /app/deploy/patch_yue2_residency.py
COPY omnivoice_runtime.py omnivoice_worker.py /app/
COPY deploy/omnivoice-requirements.lock /app/deploy/omnivoice-requirements.lock
COPY deploy/import_pocket.py /app/deploy/import_pocket.py
COPY deploy/pocket-requirements.lock /app/deploy/pocket-requirements.lock
+28
View File
@@ -0,0 +1,28 @@
"""Import verified public Pocket files from an existing HF cache, no downloads.
Run as the Deck service user. Does not edit profiles, endpoint settings or keys.
Optional private exported voice is copied into the existing Anna voice folder.
"""
import argparse,hashlib,json,shutil,time
from pathlib import Path
FILES=[('kyutai/pocket-tts','3e82814a68665eec246ff649b14c71331f955c06','languages/german/model.safetensors','3b6702b36f4387735031226cc012f7b90a7a13e6bee4d3b0ce3929736e5e150a'),('kyutai/pocket-tts-without-voice-cloning','4e1e0a3e611c51c0b4ed8174fc10f32a54644303','languages/german/tokenizer.json','2d77849811e3d1b6ae80e5b11b203f57e1847901104d8a0573b34f46f8dddb53')]
def main():
p=argparse.ArgumentParser();p.add_argument('--state',required=True,type=Path);p.add_argument('--cache',required=True,type=Path);p.add_argument('--anna',type=Path);a=p.parse_args();ids=[]
for repo,revision,name,expected in FILES:
source=a.cache/('models--'+repo.replace('/','--'))/'snapshots'/revision/name
if hashlib.sha256(source.read_bytes()).hexdigest()!=expected:raise ValueError('Öffentliche Pocket-Datei hat unerwartete SHA256.')
ident=hashlib.sha256((repo+revision+name).encode()).hexdigest();target=a.state/'models'/ident;target.mkdir(parents=True,exist_ok=True,mode=0o700)
dest=target/('model'+Path(name).suffix)
if not dest.exists():
temp=target/'import.tmp';shutil.copyfile(source,temp);temp.chmod(0o600);temp.replace(dest)
if hashlib.sha256(dest.read_bytes()).hexdigest()!=expected:raise ValueError('Vorhandene Bibliotheksdatei weicht ab; nicht überschrieben.')
entry=dict(repo=repo,revision=revision,file=name,size=dest.stat().st_size,sha256=expected,upstream_hash_verified=True,kind='audio',downloaded_at=time.time(),state='downloaded',runtime_ready=True)
temp=target/'entry.tmp';temp.write_text(json.dumps(entry));temp.chmod(0o600);temp.replace(target/'entry.json');ids.append(ident)
if a.anna:
voice=a.state/'speech-voices/Anna';voice.mkdir(parents=True,exist_ok=True,mode=0o700)
dest=voice/'pocket-german.safetensors'
if dest.exists() and dest.read_bytes()!=a.anna.read_bytes():raise ValueError('Anderes Anna-Pocket-Profil vorhanden; nicht überschrieben.')
if not dest.exists():shutil.copyfile(a.anna,dest)
dest.chmod(0o600)
print(json.dumps(dict(model_id=ids[0],tokenizer_id=ids[1],private_anna_imported=bool(a.anna))))
if __name__=='__main__':main()
+1 -1
View File
@@ -15,7 +15,7 @@ import urllib.request
ROOT = Path(__file__).resolve().parent.parent
LABEL = 'de.casaderoll.athena-deck.standalone'
FILES = ['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','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 = ['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']
+51
View File
@@ -0,0 +1,51 @@
annotated-doc==0.0.5
annotated-types==0.8.0
anyio==4.15.1
certifi==2026.7.22
cffi==2.1.1
charset-normalizer==3.5.2
click==8.5.0
einops==0.8.2
fastapi==0.143.3
filelock==3.32.3
fsspec==2026.7.0
h11==0.16.0
hf-xet==1.7.0
httpcore2==2.13.1
httpx2==2.13.1
huggingface_hub==2.2.0
idna==3.20
Jinja2==3.1.6
markdown-it-py==4.2.0
MarkupSafe==3.0.3
mdurl==0.1.2
mpmath==1.3.0
networkx==3.6.1
numpy==2.5.4
opentelemetry-api==1.45.1
packaging==26.3
pycparser==3.11
pydantic==2.14.1
pydantic_core==2.50.1
Pygments==2.21.0
python-multipart==0.0.32
PyYAML==6.0.3
requests==2.34.2
rich==15.0.0
safetensors==0.8.0
scipy==1.18.1
sentencepiece==0.2.2
setuptools==78.1.0
shellingham==1.5.4
soundfile==0.14.0
starlette==1.8.0
sympy==1.14.0
tokenizers==0.23.3
torch==2.7.0+cpu
tqdm==4.70.1
truststore==0.10.5
typer==0.27.3
typing-inspection==0.4.4
typing_extensions==4.16.0
urllib3==2.8.0
uvicorn==0.54.0
+2 -1
View File
@@ -55,7 +55,8 @@ def snapshot(root):
from acestep_runtime import AceStepRuntime
from omnivoice_runtime import OmniVoiceRuntime
from voxcpm_runtime import VoxCPMRuntime
for attr,cls,name in [('audio_cpp_runtime',AudioCppRuntime,'audio-cpp-runtime'),('ltx_original_runtime',LTXOriginalRuntime,'ltx-original-runtime'),('separator_runtime',SeparatorRuntime,'separator-runtime'),('remix_runtime',RemixRuntime,'music-remix-runtime'),('xvc_runtime',XVCRuntime,'xvc-runtime'),('applio_runtime',ApplioRuntime,'applio-runtime'),('acestep_runtime',AceStepRuntime,'acestep-runtime'),('omnivoice_runtime',OmniVoiceRuntime,'omnivoice-runtime'),('voxcpm_runtime',VoxCPMRuntime,'voxcpm-runtime')]:setattr(s,attr,reader(cls,name))
from pocket_runtime import PocketRuntime
for attr,cls,name in [('pocket_runtime',PocketRuntime,'pocket-runtime'),('audio_cpp_runtime',AudioCppRuntime,'audio-cpp-runtime'),('ltx_original_runtime',LTXOriginalRuntime,'ltx-original-runtime'),('separator_runtime',SeparatorRuntime,'separator-runtime'),('remix_runtime',RemixRuntime,'music-remix-runtime'),('xvc_runtime',XVCRuntime,'xvc-runtime'),('applio_runtime',ApplioRuntime,'applio-runtime'),('acestep_runtime',AceStepRuntime,'acestep-runtime'),('omnivoice_runtime',OmniVoiceRuntime,'omnivoice-runtime'),('voxcpm_runtime',VoxCPMRuntime,'voxcpm-runtime')]:setattr(s,attr,reader(cls,name))
b=Backup.__new__(Backup);b.server=s;b.root=root;b.job=None
doc=b.snapshot(include_history=False)
doc['warnings'].append('Vollständige Dashboard-Historie liegt im separaten Nutzdatenarchiv.')
+1 -1
View File
@@ -23,7 +23,7 @@ def key():
return KEY.read_bytes().strip()+b'\n'
def sources():
names=('soulx_singer-data','legacy-userdata','applio-data','xvc-data','voice-tests','music-jobs','acestep-jobs','separator-tests','image-tests','tts-tests')
names=('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'):