Update linux-voice-assistant-2mic-install.md
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user