From 7817e7a9821ffc45447444dd55d2575272a087fe Mon Sep 17 00:00:00 2001 From: imonlinux <39863321+imonlinux@users.noreply.github.com> Date: Thu, 11 Sep 2025 21:20:46 -0700 Subject: [PATCH] Update linux-voice-assistant-2mic-install.md --- docs/linux-voice-assistant-2mic-install.md | 58 +++++++++++----------- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/docs/linux-voice-assistant-2mic-install.md b/docs/linux-voice-assistant-2mic-install.md index 4294e2f..ec9f6be 100644 --- a/docs/linux-voice-assistant-2mic-install.md +++ b/docs/linux-voice-assistant-2mic-install.md @@ -113,38 +113,14 @@ ok_nabu_v0.1.tflite Additional community provided OWW models available from this repository: https://github.com/fwartner/home-assistant-wakewords-collection +**Word of warning. I have had problems with some of the communitee provided wake words. YMMV** + Edit linux-voice-assistant.service file: ```bash sudo systemctl edit --force --full linux-voice-assistant.service ``` -Service file as provided using OWW 'ok_nabu': -```text -[Unit] -Description=Linux Voice Assistant -Requires=wyoming-openwakeword.service -After=sound.target network-online.target -Wants=network-online.target - -[Service] -Type=simple -WorkingDirectory=/home/pi/linux-voice-assistant -ExecStart=/home/pi/linux-voice-assistant/script/run \ - --name 'Linux Satellite' \ - --audio-input-device seeed-2mic-voicecard \ - --audio-output-device alsa/hw:1,0 \ - --wake-uri 'tcp://127.0.0.1:10400' \ - --wake-word-name 'ok_nabu' -Restart=always -RestartSec=2 -Environment=PYTHONUNBUFFERED=1 - -[Install] -WantedBy=multi-user.target -``` - -Service file using OWW 'alexa': - +Service file as provided using OWW 'alexa': ```text [Unit] Description=Linux Voice Assistant @@ -169,6 +145,32 @@ Environment=PYTHONUNBUFFERED=1 WantedBy=multi-user.target ``` +Service file using OWW 'ok_nabu': + +```text +[Unit] +Description=Linux Voice Assistant +Requires=wyoming-openwakeword.service +After=sound.target network-online.target +Wants=network-online.target + +[Service] +Type=simple +WorkingDirectory=/home/pi/linux-voice-assistant +ExecStart=/home/pi/linux-voice-assistant/script/run \ + --name 'Linux Satellite' \ + --audio-input-device seeed-2mic-voicecard \ + --audio-output-device alsa/hw:1,0 \ + --wake-uri 'tcp://127.0.0.1:10400' \ + --wake-word-name 'ok_nabu' +Restart=always +RestartSec=2 +Environment=PYTHONUNBUFFERED=1 + +[Install] +WantedBy=multi-user.target +``` + Reload systemd with updated linux-voice-assistant.service file, restart linux-voice-assistant.service, and confirm successful run: ```bash sudo systemctl daemon-reload @@ -200,7 +202,7 @@ ExecStart=/home/pi/linux-voice-assistant/script/run \ --audio-input-device seeed-2mic-voicecard \ --audio-output-device alsa/hw:1,0 \ --wake-uri 'tcp://127.0.0.1:10400' \ - --wake-word-name 'ok_nabu' + --wake-word-name 'alexa' Restart=always RestartSec=2 Environment=PYTHONUNBUFFERED=1