# systemd-USER-Unit für den MC2 Voice-Sidecar — lokales STT + gestuftes TTS. # # ‼️ NACHGETRAGEN 27.08.2026: Diese Unit lief auf der Box, fehlte aber im Repo — weder # versioniert noch vom Disaster-Recovery abgedeckt, obwohl services/maintenance.py # (USER_SERVICES) und routers/system.py sie voraussetzen. Inhalt 1:1 von der laufenden Box # übernommen (`systemctl --user cat voice-service`). # # Ablage: ~/.config/systemd/user/voice-service.service ; dann: # systemctl --user daemon-reload && systemctl --user enable --now voice-service [Unit] Description=MC2 Voice Sidecar — lokales STT (faster-whisper) + gestuftes TTS (Piper/Chatterbox) After=network.target [Service] # Eigenes Python-3.12-venv (~/.voice/venv) — torch/chatterbox/faster-whisper passen nicht ins # 3.14-Backend-venv. Bind 127.0.0.1: nur lokal; MC2 proxyt nach außen (routers/voice.py). Type=simple WorkingDirectory=%h/mission-control-v2/voice_service Environment=VOICE_PORT=8650 Environment=VOICE_STT_MODEL=medium Environment=VOICE_STT_LANG=de Environment=VOICE_PIPER_DIR=%h/.voice/voices Environment=VOICE_PIPER_DEFAULT=de_DE-thorsten-medium Environment=VOICE_CHATTERBOX_DEVICE=cpu Environment=VOICE_CHATTERBOX_LANG=de Environment=TOKENIZERS_PARALLELISM=false ExecStart=%h/.voice/venv/bin/python -m uvicorn app:app --host 127.0.0.1 --port 8650 Restart=always RestartSec=3 [Install] WantedBy=default.target