Skip to content

Instantly share code, notes, and snippets.

@slyoldfox
Last active January 3, 2025 20:08
Show Gist options
  • Save slyoldfox/c0cfc9531982d5c37ffef3540b8159eb to your computer and use it in GitHub Desktop.
Save slyoldfox/c0cfc9531982d5c37ffef3540b8159eb to your computer and use it in GitHub Desktop.
services:
assist_microphone:
image: homeassistant/amd64-addon-assist_microphone:latest
container_name: assist_microphone
depends_on:
- openwakeword
entrypoint: python3
devices:
- /dev/snd:/dev/snd
command: >
-m wyoming_satellite
--uri 'tcp://0.0.0.0:10700'
--debug
--mic-command 'arecord -D plughw:1,0 -r 16000 -c 1 -f S16_LE -t raw'
--wake-uri 'tcp://openwakeword:10400'
--wake-word-name hey_jarvis
ports:
- 10700:10700
environment:
- TZ=Europe/Brussels
restart: unless-stopped
openwakeword:
image: homeassistant/amd64-addon-openwakeword:latest
container_name: openwakeword
entrypoint: python3
command: >
-m wyoming_openwakeword
--uri 'tcp://0.0.0.0:10400'
--debug
--preload-model 'hey_jarvis'
ports:
- "10400:10400"
environment:
- TZ=Europe/Brussels
volumes:
- ./openwakeword-data:/data
- ./openwakeword-custom-model-dir:/share/openwakeword
restart: unless-stopped
#-------------------------------------
piper:
image: homeassistant/amd64-addon-piper:latest
container_name: piper
entrypoint: python3
command: >
-m wyoming_piper
--piper '/usr/share/piper/piper'
--uri 'tcp://0.0.0.0:10200'
--length-scale "1"
--noise-scale "0.667"
--speaker "0"
--voice "en_US-lessac-medium"
--max-piper-procs "1"
--data-dir /data
--data-dir /share/piper
--download-dir /data
ports:
- "10200:10200"
environment:
- TZ=Europe/Brussels
volumes:
- ./piper-data:/data
restart: unless-stopped
whisper:
image: homeassistant/amd64-addon-whisper:latest
container_name: whisper
entrypoint: python3
command: >
-m wyoming_faster_whisper
--uri tcp://0.0.0.0:10300
--model small-int8
--beam-size 5
--language nl
--data-dir /data
--debug
--download-dir /data
ports:
- "10300:10300"
environment:
- TZ=Europe/Brussels
volumes:
- ./whisper-data:/data
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment