diff --git a/examples/Jabra Speak 410/DOCS.md b/examples/Jabra Speak 410/DOCS.md index 5f1c1d6..fd2aad1 100644 --- a/examples/Jabra Speak 410/DOCS.md +++ b/examples/Jabra Speak 410/DOCS.md @@ -153,7 +153,37 @@ export XDG_RUNTIME_DIR=/run/user/1000 export PULSE_SERVER=unix:/run/user/1000/pulse/native python main.py ``` +To make it persistent across reboots +``` +mkdir -p ~/.config/systemd/user/ +nano ~/.config/systemd/user/jabra-lva.service +``` +``` +[Unit] +Description=Jabra Speak 410 LVA Controller +After=network.target pipewire.service + +[Service] +Type=simple +WorkingDirectory=%h/linux-voice-assistant/examples/Jabra Speak 410 +ExecStart=%h/linux-voice-assistant/venv/bin/python main.py +Restart=always +RestartSec=5 +Environment="VOLUME_CONTROL=pipewire" +Environment="LVA_WS_URL=ws://localhost:6055" +Environment="XDG_RUNTIME_DIR=/run/user/1000" +Environment="PULSE_SERVER=unix:/run/user/1000/pulse/native" + +[Install] +WantedBy=default.target +``` +Enable and start service +``` +systemctl --user daemon-reload +systemctl --user enable jabra-lva +systemctl --user start jabra-lva +``` --- ## Configuration