forked from rhasspy/wyoming-satellite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
88 lines (82 loc) · 2.22 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
networks:
default: # default network for this project
services:
satellite:
# satellite for homeassistant - nabucasa - whyoming voice
container_name: satellite
image: "ghcr.io/florian-asche/pi-voice-assistant:nightly"
restart: unless-stopped
network_mode: "host"
devices:
- /dev/snd:/dev/snd
- /dev/bus/usb
group_add:
- audio
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
command:
- "--debug"
- "--name"
- "satellite-wohnzimmer"
- "--vad"
#- "--vad-buffer-seconds"
#- "4"
- "--mic-auto-gain"
- "5"
- "--mic-noise-suppression"
- "2"
#- "--wake-refractory-seconds"
#- "3"
- "--mic-command"
- "arecord -D plughw:CARD=seeed2micvoicec,DEV=0 -r 16000 -c 1 -f S16_LE -t raw"
- "--snd-command"
- "aplay -D plughw:CARD=seeed2micvoicec,DEV=0 -r 22050 -c 1 -f S16_LE -t raw"
- "--wake-uri"
- "tcp://127.0.0.1:10400"
- "--wake-word-name"
- "hey_jarvis"
- "--event-uri"
- "tcp://127.0.0.1:10500"
depends_on:
- ledcontrol
- openwakeword
# Control 2mic_hat led
ledcontrol:
container_name: ledcontrol
image: "ghcr.io/florian-asche/pi-voice-assistant:nightly"
restart: unless-stopped
network_mode: "host"
entrypoint: /app/script/run_2mic
devices:
- /dev/gpiomem:/dev/gpiomem
- /dev/spidev0.0:/dev/spidev0.0
- /dev/spidev0.1:/dev/spidev0.1
#group_add:
# - audio
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
command:
- "--debug"
- "--uri"
- "tcp://0.0.0.0:10500"
# Wake word detection
openwakeword:
container_name: openwakeword
image: rhasspy/wyoming-openwakeword
restart: unless-stopped
#user: 1001:1001
network_mode: "host"
volumes:
- wakeword_data:/data
- wakeword_custom:/custom
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
- TZ=Europe/Berlin
command: "--preload-model 'hey_jarvis' --custom-model-dir /custom --threshold 0.3 --trigger-level 1"
volumes:
wakeword_data:
wakeword_custom: