From adb050d0b8b7ffb88e6d4c5c2712ba48c19ce5f7 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Thu, 4 May 2023 23:45:43 +0200 Subject: [PATCH] Added ESPHome microphone support to Raspimuse Luxe Speaker. Makes nasty noise. --- esphome/raspiaudio-muse-luxe.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/esphome/raspiaudio-muse-luxe.yaml b/esphome/raspiaudio-muse-luxe.yaml index 9667f42..6b69963 100644 --- a/esphome/raspiaudio-muse-luxe.yaml +++ b/esphome/raspiaudio-muse-luxe.yaml @@ -114,9 +114,10 @@ binary_sensor: input: true pullup: true name: ${friendly_name} Play Button - on_click: - - media_player.toggle: - + on_press: + - voice_assistant.start: + on_release: + - voice_assistant.stop: light: - platform: fastled_clockless name: ${friendly_name} @@ -124,3 +125,11 @@ light: chipset: SK6812 num_leds: 1 rgb_order: grb + +microphone: + - platform: i2s_audio + id: lux_microphone + i2s_din_pin: GPIO35 + +voice_assistant: + microphone: lux_microphone