[Unit]
Description=Piper TTS HTTP server — Chinese voice (read-aloud backend for petal)
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
# Bound to loopback only — petal proxies to it; never exposed off-box.
ExecStart=%h/piper/venv/bin/python -m piper.http_server \
  -m zh_CN-huayan-medium \
  --data-dir %h/piper/voices \
  --host 127.0.0.1 --port 5006
Restart=on-failure
RestartSec=3

[Install]
WantedBy=default.target
