Metainformationen zur Seite
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende Überarbeitung | |||
digitales:software:homeassistant:sprachassistent [24.04.2025] – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | digitales:software:homeassistant:sprachassistent [24.04.2025] (aktuell) – ↷ Seite von digitales:sdr:software:homeassistant:sprachassistent nach digitales:software:homeassistant:sprachassistent verschoben cs | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Voice Assistant ====== | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | <code yaml esp32-voice.yaml> | ||
+ | esphome: | ||
+ | name: esp32-mic-speaker | ||
+ | friendly_name: | ||
+ | on_boot: | ||
+ | - priority: -100 | ||
+ | then: | ||
+ | - wait_until: api.connected | ||
+ | - delay: 1s | ||
+ | - if: | ||
+ | | ||
+ | | ||
+ | then: | ||
+ | - voice_assistant.start_continuous: | ||
+ | |||
+ | esp32: | ||
+ | board: esp32dev | ||
+ | framework: | ||
+ | type: esp-idf | ||
+ | version: recommended | ||
+ | |||
+ | # Enable logging | ||
+ | logger: | ||
+ | |||
+ | # Enable Home Assistant API | ||
+ | api: | ||
+ | |||
+ | ota: | ||
+ | |||
+ | wifi: | ||
+ | ssid: !secret wifi_ssid | ||
+ | password: !secret wifi_password | ||
+ | |||
+ | # Enable fallback hotspot (captive portal) in case wifi connection fails | ||
+ | ap: | ||
+ | ssid: " | ||
+ | password: " | ||
+ | |||
+ | i2s_audio: | ||
+ | i2s_lrclk_pin: | ||
+ | i2s_bclk_pin: | ||
+ | |||
+ | microphone: | ||
+ | - platform: i2s_audio | ||
+ | id: mic | ||
+ | adc_type: external | ||
+ | i2s_din_pin: | ||
+ | pdm: false | ||
+ | |||
+ | speaker: | ||
+ | - platform: i2s_audio | ||
+ | id: big_speaker | ||
+ | dac_type: external | ||
+ | i2s_dout_pin: | ||
+ | mode: mono | ||
+ | |||
+ | voice_assistant: | ||
+ | microphone: mic | ||
+ | use_wake_word: | ||
+ | noise_suppression_level: | ||
+ | auto_gain: 31dBFS | ||
+ | volume_multiplier: | ||
+ | speaker: big_speaker | ||
+ | id: assist | ||
+ | |||
+ | switch: | ||
+ | - platform: template | ||
+ | name: Use wake word | ||
+ | id: use_wake_word | ||
+ | optimistic: true | ||
+ | restore_mode: | ||
+ | entity_category: | ||
+ | on_turn_on: | ||
+ | - lambda: id(assist).set_use_wake_word(true); | ||
+ | - if: | ||
+ | condition: | ||
+ | not: | ||
+ | - voice_assistant.is_running | ||
+ | then: | ||
+ | - voice_assistant.start_continuous | ||
+ | on_turn_off: | ||
+ | - voice_assistant.stop | ||
+ | - lambda: id(assist).set_use_wake_word(false); | ||
+ | </ | ||
+ | |||