Update linux-voice-assistant-2mic-install.md
Updated the tutorial to include optional avahi config for HA discovery of the LVA.
This commit is contained in:
@@ -25,7 +25,8 @@ This guide reproduces a working setup of the **linux-voice-assistant** project w
|
||||
```bash
|
||||
sudo apt update
|
||||
sudo apt upgrade
|
||||
sudo apt install libportaudio2 build-essential git libmpv-dev mpv python3.11-dev
|
||||
sudo apt install libportaudio2 build-essential git \
|
||||
libmpv-dev mpv python3.11-dev avahi-daemon avahi-utils
|
||||
sudo reboot
|
||||
```
|
||||
|
||||
@@ -82,6 +83,19 @@ aplay -l
|
||||
|
||||
## 7. Systemd services
|
||||
|
||||
### (Optional) enable Avahi service file to advertise LVA to HA:
|
||||
|
||||
```bash
|
||||
chmod +x ~/linux-voice-assistant/script/gen-esphome-avahi.sh
|
||||
sudo ~/linux-voice-assistant/script/gen-esphome-avahi.sh
|
||||
sudo mkdir -p /etc/systemd/system/linux-voice-assistant.service.d
|
||||
sudo cp ~/linux-voice-assistant/service/10-avahi.conf sudo mkdir -p /etc/systemd/system/linux-voice-assistant.service.d/10-avahi.conf
|
||||
```
|
||||
|
||||
```bash
|
||||
sudo systemctl restart avahi-daemon.service
|
||||
```
|
||||
|
||||
### (Optional) for Pulse Audio with OWW copy this service file into /etc/systemd/system/:
|
||||
|
||||
```bash
|
||||
@@ -145,6 +159,8 @@ sudo systemctl status linux-voice-assistant wyoming-openwakeword --no-pager -l
|
||||
|
||||
## 8. Connect to Home Assistant
|
||||
|
||||
### If HA does not discover the new LVA:
|
||||
|
||||
1. In Home Assistant, go to "Settings" -> "Device & services"
|
||||
2. Click the "Add integration" button
|
||||
3. Choose "ESPHome" and then "Set up another instance of ESPHome"
|
||||
|
||||
Reference in New Issue
Block a user