Update linux-voice-assistant-2mic-install.md

This commit is contained in:
imonlinux
2025-09-11 21:20:46 -07:00
committed by GitHub
parent f2f1be206e
commit 7817e7a982
+30 -28
View File
@@ -113,38 +113,14 @@ ok_nabu_v0.1.tflite
Additional community provided OWW models available from this repository: Additional community provided OWW models available from this repository:
https://github.com/fwartner/home-assistant-wakewords-collection 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: Edit linux-voice-assistant.service file:
```bash ```bash
sudo systemctl edit --force --full linux-voice-assistant.service sudo systemctl edit --force --full linux-voice-assistant.service
``` ```
Service file as provided using OWW 'ok_nabu': Service file as provided using OWW 'alexa':
```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':
```text ```text
[Unit] [Unit]
Description=Linux Voice Assistant Description=Linux Voice Assistant
@@ -169,6 +145,32 @@ Environment=PYTHONUNBUFFERED=1
WantedBy=multi-user.target 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: Reload systemd with updated linux-voice-assistant.service file, restart linux-voice-assistant.service, and confirm successful run:
```bash ```bash
sudo systemctl daemon-reload sudo systemctl daemon-reload
@@ -200,7 +202,7 @@ ExecStart=/home/pi/linux-voice-assistant/script/run \
--audio-input-device seeed-2mic-voicecard \ --audio-input-device seeed-2mic-voicecard \
--audio-output-device alsa/hw:1,0 \ --audio-output-device alsa/hw:1,0 \
--wake-uri 'tcp://127.0.0.1:10400' \ --wake-uri 'tcp://127.0.0.1:10400' \
--wake-word-name 'ok_nabu' --wake-word-name 'alexa'
Restart=always Restart=always
RestartSec=2 RestartSec=2
Environment=PYTHONUNBUFFERED=1 Environment=PYTHONUNBUFFERED=1