Add files via upload

This commit is contained in:
imonlinux
2025-09-13 19:55:05 -07:00
committed by GitHub
parent 8c86546065
commit 8d179b371c
5 changed files with 142 additions and 0 deletions
+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,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 MWW' \
--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,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,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 MWW' \
--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,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