[Unit]
Description=HeadMic - Vixy's Ears Service (Dual XVF3800)
After=network.target sound.target

[Service]
Type=simple
User=alex
WorkingDirectory=/home/alex/headmic
Environment="PORCUPINE_ACCESS_KEY=YOUR_KEY_HERE"
Environment="WAKE_WORD_PATH=/home/alex/headmic/Hey-Vivi_en_raspberry-pi_v4_0_0.ppn"
Environment="EARTAIL_URL=http://bigorin.local:8764"
ExecStart=/home/alex/headmic/.venv/bin/python /home/alex/headmic/headmic.py
Restart=always
RestartSec=5

# Audio permissions
SupplementaryGroups=audio

[Install]
WantedBy=multi-user.target
