esphome/tests/components/voice_assistant/test.esp32-c3-idf.yaml
[pʲɵs] 04248b6840
[i2s_audio] Add more options to speakers and microphones ()
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2024-09-11 17:12:20 +12:00

56 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: 6
i2s_bclk_pin: 7
i2s_mclk_pin: 5
microphone:
- platform: i2s_audio
id: mic_id_external
i2s_din_pin: 3
adc_type: external
pdm: false
speaker:
- platform: i2s_audio
id: speaker_id
dac_type: external
i2s_dout_pin: 2
voice_assistant:
microphone: mic_id_external
speaker: speaker_id
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()]