Merge pull request #23 from imonlinux/Cleanup_Service_Files
Cleanup service files
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
[Unit]
|
||||
Wants=avahi-daemon.service
|
||||
After=avahi-daemon.service
|
||||
@@ -1,8 +0,0 @@
|
||||
# /etc/systemd/system/linux-voice-assistant.service.d/10-tuning.conf
|
||||
[Service]
|
||||
# Keep mpv logs at warning by default; override with environment if desired
|
||||
Environment=LVA_MPV_MSG_LEVEL=all=warn
|
||||
|
||||
# Faster, cleaner shutdowns
|
||||
TimeoutStopSec=5s
|
||||
KillMode=mixed
|
||||
@@ -1,27 +0,0 @@
|
||||
[Unit]
|
||||
Description=Linux Voice Assistant (ALSA - ReSpeaker 2mic HAT)
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=pi
|
||||
Group=pi
|
||||
WorkingDirectory=/home/pi/linux-voice-assistant
|
||||
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
# Use ALSA ReSpeaker 2mic HAT hardware device
|
||||
Environment="MPV_DEFAULT_DEVICE=alsa/plughw:CARD=seeed2micvoicec,DEV=0"
|
||||
|
||||
ExecStart=/home/pi/linux-voice-assistant/script/run \
|
||||
--name 'Linux Satellite ALSA MWW' \
|
||||
--audio-input-device default \
|
||||
--audio-output-device ${MPV_DEFAULT_DEVICE} \
|
||||
--debug
|
||||
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,31 +0,0 @@
|
||||
[Unit]
|
||||
Description=Linux Voice Assistant (ALSA - ReSpeaker 2mic HAT)
|
||||
After=network-online.target wyoming-openwakeword.service
|
||||
Wants=network-online.target
|
||||
Requires=wyoming-openwakeword.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=pi
|
||||
Group=pi
|
||||
WorkingDirectory=/home/pi/linux-voice-assistant
|
||||
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
# Use ALSA ReSpeaker 2mic HAT hardware device
|
||||
Environment="MPV_DEFAULT_DEVICE=alsa/plughw:CARD=seeed2micvoicec,DEV=0"
|
||||
|
||||
ExecStart=/home/pi/linux-voice-assistant/script/run \
|
||||
--name 'Linux Satellite ALSA OWW' \
|
||||
--audio-input-device default \
|
||||
--audio-output-device ${MPV_DEFAULT_DEVICE} \
|
||||
--wake-uri 'tcp://127.0.0.1:10400' \
|
||||
--wake-word-name 'alexa' \
|
||||
--wake-models-dir '/home/pi/wyoming-openwakeword/wyoming_openwakeword/models'
|
||||
--debug
|
||||
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,33 +0,0 @@
|
||||
[Unit]
|
||||
Description=Linux Voice Assistant (PulseAudio - Headphone Jack)
|
||||
After=network-online.target pulseaudio.service
|
||||
Wants=network-online.target
|
||||
Requires=pulseaudio.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=pi
|
||||
Group=pi
|
||||
WorkingDirectory=/home/pi/linux-voice-assistant
|
||||
|
||||
# Environment
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
Environment="PULSE_SERVER=unix:/var/run/pulse/native"
|
||||
Environment="PULSE_LATENCY_MSEC=60"
|
||||
Environment="MPV_DEFAULT_DEVICE=pulse/alsa_output.platform-soc_sound.stereo-fallback"
|
||||
|
||||
# Wait briefly for the Pulse native socket to be ready
|
||||
ExecStartPre=/bin/sh -c 'for i in $(seq 1 40); do [ -S /var/run/pulse/native ] && exit 0; sleep 0.5; done; echo "PulseAudio socket not found" >&2; exit 1'
|
||||
|
||||
# Launch the assistant
|
||||
ExecStart=/home/pi/linux-voice-assistant/script/run \
|
||||
--name 'Linux Satellite PA MWW' \
|
||||
--audio-input-device default \
|
||||
--audio-output-device ${MPV_DEFAULT_DEVICE} \
|
||||
--debug
|
||||
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,36 +0,0 @@
|
||||
[Unit]
|
||||
Description=Linux Voice Assistant (PulseAudio - Headphone Jack)
|
||||
After=network-online.target pulseaudio.service wyoming-openwakeword.service
|
||||
Wants=network-online.target
|
||||
Requires=pulseaudio.service wyoming-openwakeword.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=pi
|
||||
Group=pi
|
||||
WorkingDirectory=/home/pi/linux-voice-assistant
|
||||
|
||||
# Environment
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
Environment="PULSE_SERVER=unix:/var/run/pulse/native"
|
||||
Environment="PULSE_LATENCY_MSEC=60"
|
||||
Environment="MPV_DEFAULT_DEVICE=pulse/alsa_output.platform-soc_sound.stereo-fallback"
|
||||
|
||||
# Wait briefly for the Pulse native socket to be ready
|
||||
ExecStartPre=/bin/sh -c 'for i in $(seq 1 40); do [ -S /var/run/pulse/native ] && exit 0; sleep 0.5; done; echo "PulseAudio socket not found" >&2; exit 1'
|
||||
|
||||
# Launch the assistant
|
||||
ExecStart=/home/pi/linux-voice-assistant/script/run \
|
||||
--name 'Linux Satellite PA OWW' \
|
||||
--audio-input-device default \
|
||||
--audio-output-device ${MPV_DEFAULT_DEVICE} \
|
||||
--wake-uri 'tcp://127.0.0.1:10400' \
|
||||
--wake-word-name 'alexa' \
|
||||
--wake-models-dir '/home/pi/wyoming-openwakeword/wyoming_openwakeword/models' \
|
||||
--debug
|
||||
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,9 +0,0 @@
|
||||
[Unit]
|
||||
Description=PulseAudio system server
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=pulseaudio --daemonize=no --system --realtime --log-target=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -7,10 +7,12 @@ WorkingDirectory=/home/pi/linux-voice-assistant
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
ExecStart=/home/pi/linux-voice-assistant/script/run \
|
||||
--name LVA-OWW \
|
||||
--wake-word-dir wakewords/openWakeWord \
|
||||
--name 'Linux Voice Assistant' \
|
||||
--wake-word-dir wakewords/openWakeWord \
|
||||
--wake-word-dir wakewords \
|
||||
--stop-model stop \
|
||||
--stop-model stop \
|
||||
--audio-input-device seeed-2mic-voicecard \
|
||||
--audio-output-device alsa/plughw:CARD=seeed2micvoicec \
|
||||
--debug
|
||||
|
||||
Restart=always
|
||||
|
||||
+5
-2
@@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=Linux Voice Assistant (PulseAudio + MWW)
|
||||
Description=Linux Voice Assistant (PulseAudio)
|
||||
After=pulseaudio.service
|
||||
Wants=pulseaudio.service
|
||||
|
||||
@@ -9,7 +9,10 @@ WorkingDirectory=/home/pi/linux-voice-assistant
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
ExecStart=/home/pi/linux-voice-assistant/script/run \
|
||||
--name 'Linux Satellite PA' \
|
||||
--name 'Linux Voice Assistant' \
|
||||
--wake-word-dir wakewords/openWakeWord \
|
||||
--wake-word-dir wakewords \
|
||||
--stop-model stop \
|
||||
--audio-input-device default \
|
||||
--audio-output-device pulse/alsa_output.platform-soc_sound.stereo-fallback \
|
||||
--debug
|
||||
@@ -1,26 +0,0 @@
|
||||
[Unit]
|
||||
Description=Linux Voice Assistant (PulseAudio + OWW)
|
||||
After=pulseaudio.service wyoming-openwakeword.service
|
||||
Wants=pulseaudio.service wyoming-openwakeword.service
|
||||
Requires=wyoming-openwakeword.service
|
||||
After=wyoming-openwakeword.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/home/pi/linux-voice-assistant
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
ExecStart=/home/pi/linux-voice-assistant/script/run \
|
||||
--name 'Linux Satellite PA' \
|
||||
--audio-input-device default \
|
||||
--audio-output-device pulse/alsa_output.platform-soc_sound.stereo-fallback \
|
||||
--wake-uri 'tcp://127.0.0.1:10400' \
|
||||
--wake-word-name 'alexa' \
|
||||
--wake-models-dir '/home/pi/wyoming-openwakeword/wyoming_openwakeword/models' \
|
||||
--debug
|
||||
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
+5
-2
@@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=Linux Voice Assistant (PipeWire + MWW)
|
||||
Description=Linux Voice Assistant (PipeWire)
|
||||
After=pipewire.service pipewire-pulse.service
|
||||
Wants=pipewire-pulse.service
|
||||
|
||||
@@ -9,7 +9,10 @@ WorkingDirectory=/home/pi/linux-voice-assistant
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
ExecStart=/home/pi/linux-voice-assistant/script/run \
|
||||
--name 'Linux Satellite PW MWW' \
|
||||
--name 'Linux Voice Assistant' \
|
||||
--wake-word-dir wakewords/openWakeWord \
|
||||
--wake-word-dir wakewords \
|
||||
--stop-model stop \
|
||||
--audio-input-device default \
|
||||
--audio-output-device pipewire/default \
|
||||
--debug
|
||||
@@ -1,26 +0,0 @@
|
||||
[Unit]
|
||||
Description=Linux Voice Assistant (PipeWire + OWW)
|
||||
After=pipewire.service pipewire-pulse.service wyoming-openwakeword.service
|
||||
Wants=pipewire-pulse.service wyoming-openwakeword.service
|
||||
Requires=wyoming-openwakeword.service
|
||||
After=wyoming-openwakeword.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/home/pi/linux-voice-assistant
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
ExecStart=/home/pi/linux-voice-assistant/script/run \
|
||||
--name 'Linux Satellite Test PW' \
|
||||
--audio-input-device default \
|
||||
--audio-output-device pipewire/default \
|
||||
--wake-uri 'tcp://127.0.0.1:10400' \
|
||||
--wake-word-name 'alexa' \
|
||||
--wake-models-dir '/home/pi/wyoming-openwakeword/wyoming_openwakeword/models' \
|
||||
--debug
|
||||
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
@@ -1,25 +0,0 @@
|
||||
[Unit]
|
||||
Description=Wyoming openWakeWord
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/home/pi/wyoming-openwakeword
|
||||
|
||||
ExecStart=/usr/bin/env bash -lc '\
|
||||
cd /home/pi/wyoming-openwakeword && \
|
||||
exec ./script/run \
|
||||
--uri tcp://0.0.0.0:10400 \
|
||||
--models-dir /home/pi/wyoming-openwakeword/wyoming_openwakeword/models \
|
||||
\
|
||||
--preload-model alexa_v0.1 --threshold 0.5 --trigger-level 3 \
|
||||
--preload-model hey_jarvis_v0.1 --threshold 0.5 --trigger-level 3 \
|
||||
--preload-model hey_mycroft_v0.1 --threshold 0.5 --trigger-level 3 \
|
||||
--preload-model hey_rhasspy_v0.1 --threshold 0.5 --trigger-level 3 \
|
||||
--preload-model ok_nabu_v0.1 --threshold 0.5 --trigger-level 3 \
|
||||
'
|
||||
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
@@ -1,27 +0,0 @@
|
||||
# /etc/systemd/system/wyoming-openwakeword.service
|
||||
[Unit]
|
||||
Description=Wyoming openWakeWord
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=pi
|
||||
WorkingDirectory=/home/pi/wyoming-openwakeword
|
||||
ExecStart=/usr/bin/env bash -lc '\
|
||||
cd /home/pi/wyoming-openwakeword && \
|
||||
exec ./script/run \
|
||||
--uri tcp://0.0.0.0:10400 \
|
||||
--models-dir /home/pi/wyoming-openwakeword/wyoming_openwakeword/models \
|
||||
\
|
||||
--preload-model alexa_v0.1 --threshold 0.5 --trigger-level 3 \
|
||||
--preload-model hey_jarvis_v0.1 --threshold 0.5 --trigger-level 3 \
|
||||
--preload-model hey_mycroft_v0.1 --threshold 0.5 --trigger-level 3 \
|
||||
--preload-model hey_rhasspy_v0.1 --threshold 0.5 --trigger-level 3 \
|
||||
--preload-model ok_nabu_v0.1 --threshold 0.5 --trigger-level 3 \
|
||||
'
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user