Add files via upload

This commit is contained in:
imonlinux
2025-10-10 18:44:08 -07:00
committed by GitHub
parent eb73cb5baa
commit 853e25cf60
17 changed files with 1005 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
[Unit]
Wants=avahi-daemon.service
After=avahi-daemon.service
+8
View File
@@ -0,0 +1,8 @@
# /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
@@ -0,0 +1,27 @@
[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
@@ -0,0 +1,31 @@
[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
@@ -0,0 +1,33 @@
[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
@@ -0,0 +1,36 @@
[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
+9
View File
@@ -0,0 +1,9 @@
[Unit]
Description=PulseAudio system server
[Service]
Type=notify
ExecStart=pulseaudio --daemonize=no --system --realtime --log-target=journal
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,21 @@
[Unit]
Description=Linux Voice Assistant (PulseAudio + MWW)
After=pulseaudio.service
Wants=pulseaudio.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 \
--debug
Restart=always
RestartSec=2
[Install]
WantedBy=default.target
@@ -0,0 +1,26 @@
[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
@@ -0,0 +1,21 @@
[Unit]
Description=Linux Voice Assistant (PipeWire + MWW)
After=pipewire.service pipewire-pulse.service
Wants=pipewire-pulse.service
[Service]
Type=simple
WorkingDirectory=/home/pi/linux-voice-assistant
Environment=PYTHONUNBUFFERED=1
ExecStart=/home/pi/linux-voice-assistant/script/run \
--name 'Linux Satellite PW MWW' \
--audio-input-device default \
--audio-output-device pipewire/default \
--debug
Restart=always
RestartSec=2
[Install]
WantedBy=default.target
@@ -0,0 +1,26 @@
[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
@@ -0,0 +1,25 @@
[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
+27
View File
@@ -0,0 +1,27 @@
# /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