mirror of
https://github.com/esphome/esphome.git
synced 2024-12-25 15:04:54 +01:00
e882cea47e
Some checks are pending
CI / CI Status (push) Blocked by required conditions
CI / Check pylint (push) Blocked by required conditions
CI / Create common environment (push) Waiting to run
CI / Check black (push) Blocked by required conditions
CI / Check flake8 (push) Blocked by required conditions
CI / Check pyupgrade (push) Blocked by required conditions
CI / Run script/ci-custom (push) Blocked by required conditions
CI / Run pytest (macOS-latest, 3.11) (push) Blocked by required conditions
CI / Run pytest (ubuntu-latest, 3.10) (push) Blocked by required conditions
CI / Check clang-format (push) Blocked by required conditions
CI / Run pytest (ubuntu-latest, 3.11) (push) Blocked by required conditions
CI / Run pytest (ubuntu-latest, 3.12) (push) Blocked by required conditions
CI / Run pytest (ubuntu-latest, 3.9) (push) Blocked by required conditions
CI / Run pytest (windows-latest, 3.11) (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 1/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 2/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 3/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 4/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 IDF (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP8266 (push) Blocked by required conditions
CI / list-components (push) Blocked by required conditions
CI / Component test ${{ matrix.file }} (push) Blocked by required conditions
CI / Split components for testing into 20 groups maximum (push) Blocked by required conditions
CI / Test split components (push) Blocked by required conditions
YAML lint / yamllint (push) Waiting to run
58 lines
1.2 KiB
YAML
58 lines
1.2 KiB
YAML
esphome:
|
|
on_boot:
|
|
then:
|
|
- voice_assistant.start
|
|
- voice_assistant.start_continuous
|
|
- voice_assistant.stop
|
|
|
|
wifi:
|
|
ssid: MySSID
|
|
password: password1
|
|
|
|
api:
|
|
|
|
i2s_audio:
|
|
i2s_lrclk_pin: 16
|
|
i2s_bclk_pin: 17
|
|
i2s_mclk_pin: 15
|
|
|
|
microphone:
|
|
- platform: i2s_audio
|
|
id: mic_id_external
|
|
i2s_din_pin: 13
|
|
adc_type: external
|
|
pdm: false
|
|
|
|
speaker:
|
|
- platform: i2s_audio
|
|
id: speaker_id
|
|
dac_type: external
|
|
i2s_dout_pin: 12
|
|
mode: mono
|
|
|
|
voice_assistant:
|
|
microphone: mic_id_external
|
|
speaker: speaker_id
|
|
conversation_timeout: 60s
|
|
on_listening:
|
|
- logger.log: "Voice assistant microphone listening"
|
|
on_start:
|
|
- logger.log: "Voice assistant started"
|
|
on_stt_end:
|
|
- logger.log:
|
|
format: "Voice assistant STT ended with result %s"
|
|
args: [x.c_str()]
|
|
on_tts_start:
|
|
- logger.log:
|
|
format: "Voice assistant TTS started with text %s"
|
|
args: [x.c_str()]
|
|
on_tts_end:
|
|
- logger.log:
|
|
format: "Voice assistant TTS ended with url %s"
|
|
args: [x.c_str()]
|
|
on_end:
|
|
- logger.log: "Voice assistant ended"
|
|
on_error:
|
|
- logger.log:
|
|
format: "Voice assistant error - code %s, message: %s"
|
|
args: [code.c_str(), message.c_str()]
|