Metainformationen zur Seite
  •  

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
digitales:software:homeassistant:sprachassistent [23.10.2023] csdigitales: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:
-====== Sprachassistent ======+====== Voice Assistant ======
  
   * [[https://www.home-assistant.io/voice_control/voice_remote_local_assistant/|https://www.home-assistant.io/voice_control/voice_remote_local_assistant/]]   * [[https://www.home-assistant.io/voice_control/voice_remote_local_assistant/|https://www.home-assistant.io/voice_control/voice_remote_local_assistant/]]
   * [[https://github.com/home-assistant/intents/tree/main/sentences|https://github.com/home-assistant/intents/tree/main/sentences]]   * [[https://github.com/home-assistant/intents/tree/main/sentences|https://github.com/home-assistant/intents/tree/main/sentences]]
-  * [[https://youtu.be/7R30c-H8Rro?si=FB2alsZhzYNtM2li|Getting Started with ESPHome and Home Assistant]]+  * [[https://youtu.be/zhlIaBG3Ldo?si=GUM1CKI7rB9IJ-aL|Building a Local Smart Home Voice Assistant With ESPHome!]] 
 +  * [[https://gist.github.com/EverythingSmartHome/055fbdde31a607ef9d695d5cac780e94| EverythingSmartHome/esp32-voice.yaml]] 
 +  * [[https://www.home-assistant.io/voice_control/thirteen-usd-voice-remote/|$13 voice assistant for Home Assistant Atom Echo]] 
 + 
 +<code yaml esp32-voice.yaml> 
 +esphome: 
 +  name: esp32-mic-speaker 
 +  friendly_name: esp32-mic-speaker 
 +  on_boot: 
 +     - priority: -100 
 +       then: 
 +         - wait_until: api.connected 
 +         - delay: 1s 
 +         - if: 
 +             condition: 
 +               switch.is_on: use_wake_word 
 +             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: "Esp32-Mic-Speaker" 
 +    password: "9vYvAFzzPjuc" 
 + 
 +i2s_audio: 
 +  i2s_lrclk_pin: GPIO27 
 +  i2s_bclk_pin: GPIO26 
 + 
 +microphone: 
 +  - platform: i2s_audio 
 +    id: mic 
 +    adc_type: external 
 +    i2s_din_pin: GPIO13 
 +    pdm: false 
 + 
 +speaker: 
 +  - platform: i2s_audio 
 +    id: big_speaker 
 +    dac_type: external 
 +    i2s_dout_pin: GPIO25 
 +    mode: mono 
 + 
 +voice_assistant: 
 +  microphone: mic 
 +  use_wake_word: false 
 +  noise_suppression_level:
 +  auto_gain: 31dBFS 
 +  volume_multiplier: 2.0 
 +  speaker: big_speaker 
 +  id: assist 
 + 
 +switch: 
 +  - platform: template 
 +    name: Use wake word 
 +    id: use_wake_word 
 +    optimistic: true 
 +    restore_mode: RESTORE_DEFAULT_ON 
 +    entity_category: config 
 +    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); 
 +</code>