fix: XTTS local-Mode per ENV statt command-Override
Das Image-Default-CMD liest Konfig aus ENV Variablen:
CMD: ... -ms \${MODEL_SOURCE:-"apiManual"}
Also reicht MODEL_SOURCE=local — command bleibt Image-Default und wir
sparen uns den brueckigen Override der schief ging (python nicht da,
flag-Namen raten, etc.).
Zusaetzlich: EXAMPLE_FOLDER=/voices damit der Speaker-Folder auf unser
gemountetes /voices zeigt (sonst /app/example was nur die Demo-Voices
enthaelt).
Kein command override mehr noetig — das Image macht alles wie vorher,
nur mit local-Mode.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0783b1b99d
commit
ee3e0a0af6
|
|
@ -33,27 +33,12 @@ services:
|
||||||
- ./voices:/voices # Custom Voice Samples
|
- ./voices:/voices # Custom Voice Samples
|
||||||
environment:
|
environment:
|
||||||
- COQUI_TOS_AGREED=1
|
- COQUI_TOS_AGREED=1
|
||||||
# Local-Modus: Modell bleibt dauerhaft im GPU-VRAM (~2GB). Vorteile:
|
# Local-Modus statt default "apiManual": Modell bleibt im GPU-VRAM,
|
||||||
# - Render startet sofort (kein reload pro Request)
|
# Render startet sofort, /tts_stream funktioniert.
|
||||||
# - /tts_stream funktioniert → echtes Streaming mit ~500ms time-to-first-audio
|
# Default-CMD des Images liest diese ENV: -ms ${MODEL_SOURCE:-"apiManual"}
|
||||||
# Ohne diesen command: apiManual-Modus, jede Anfrage laedt Modell neu, kein Streaming.
|
- MODEL_SOURCE=local
|
||||||
# Der NVIDIA-Entrypoint erwartet Python als ausfuehrbares Command, nicht nur Flags.
|
# Speaker-Folder auf unsere gemounteten voices zeigen lassen
|
||||||
command:
|
- EXAMPLE_FOLDER=/voices
|
||||||
- python3
|
|
||||||
- -m
|
|
||||||
- xtts_api_server
|
|
||||||
- -hs
|
|
||||||
- "0.0.0.0"
|
|
||||||
- -p
|
|
||||||
- "8020"
|
|
||||||
- -ms
|
|
||||||
- local
|
|
||||||
- -o
|
|
||||||
- /app/output
|
|
||||||
- -mf
|
|
||||||
- /app/xtts_models
|
|
||||||
- -sf
|
|
||||||
- /voices
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# ─── XTTS Bridge (verbindet zu RVS) ───────────
|
# ─── XTTS Bridge (verbindet zu RVS) ───────────
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue