Add files via upload
This commit is contained in:
@@ -1,24 +1,34 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Linux Voice Assistant
|
Description=Linux Voice Assistant
|
||||||
Requires=wyoming-openwakeword.service
|
After=network-online.target pulseaudio.service wyoming-openwakeword.service
|
||||||
After=wyoming-openwakeword.service
|
|
||||||
After=sound.target network-online.target
|
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
|
Requires=pulseaudio.service wyoming-openwakeword.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
User=pi
|
||||||
|
Group=pi
|
||||||
WorkingDirectory=/home/pi/linux-voice-assistant
|
WorkingDirectory=/home/pi/linux-voice-assistant
|
||||||
|
|
||||||
|
# Ensure the app talks to system-wide PulseAudio
|
||||||
|
Environment=PYTHONUNBUFFERED=1
|
||||||
|
Environment="PULSE_SERVER=unix:/var/run/pulse/native"
|
||||||
|
|
||||||
|
# Use PulseAudio defaults (set via pactl) for input/output
|
||||||
ExecStart=/home/pi/linux-voice-assistant/script/run \
|
ExecStart=/home/pi/linux-voice-assistant/script/run \
|
||||||
--name 'Linux Satellite' \
|
--name 'Linux Satellite HAL-9001' \
|
||||||
--audio-input-device pulse \
|
--audio-input-device default \
|
||||||
--audio-output-device pulse \
|
--audio-output-device default \
|
||||||
--wake-uri 'tcp://127.0.0.1:10400' \
|
--wake-uri 'tcp://127.0.0.1:10400' \
|
||||||
--wake-word-name 'alexa' \
|
--wake-word-name 'alexa' \
|
||||||
--wake-models-dir '/home/pi/wyoming-openwakeword/wyoming_openwakeword/models' \
|
--wake-models-dir '/home/pi/wyoming-openwakeword/wyoming_openwakeword/models' \
|
||||||
--debug
|
--debug
|
||||||
|
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=2
|
RestartSec=2
|
||||||
Environment=PYTHONUNBUFFERED=1
|
|
||||||
|
# If you need network and filesystems ready:
|
||||||
|
#TimeoutStartSec=30
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user