2024-04-23 21:40:20 +02:00
|
|
|
esphome:
|
|
|
|
on_boot:
|
|
|
|
then:
|
2024-10-23 22:37:38 +02:00
|
|
|
- speaker.mute_on:
|
|
|
|
- speaker.mute_off:
|
2024-08-14 05:42:43 +02:00
|
|
|
- if:
|
|
|
|
condition: speaker.is_stopped
|
|
|
|
then:
|
|
|
|
- speaker.play: [0, 1, 2, 3]
|
2024-10-17 00:47:11 +02:00
|
|
|
- speaker.volume_set: 0.9
|
2024-08-14 05:42:43 +02:00
|
|
|
- if:
|
|
|
|
condition: speaker.is_playing
|
|
|
|
then:
|
|
|
|
- speaker.finish:
|
|
|
|
- speaker.stop:
|
2024-04-23 21:40:20 +02:00
|
|
|
|
|
|
|
i2s_audio:
|
|
|
|
i2s_lrclk_pin: 16
|
|
|
|
i2s_bclk_pin: 17
|
|
|
|
i2s_mclk_pin: 15
|
|
|
|
|
2024-10-23 22:37:38 +02:00
|
|
|
i2c:
|
|
|
|
scl: 12
|
|
|
|
sda: 10
|
|
|
|
|
|
|
|
audio_dac:
|
|
|
|
- platform: aic3204
|
|
|
|
id: internal_dac
|
|
|
|
|
2024-04-23 21:40:20 +02:00
|
|
|
speaker:
|
|
|
|
- platform: i2s_audio
|
2024-10-23 22:37:38 +02:00
|
|
|
id: speaker_with_audio_dac_id
|
|
|
|
audio_dac: internal_dac
|
2024-04-23 21:40:20 +02:00
|
|
|
dac_type: external
|
2024-10-23 22:37:38 +02:00
|
|
|
i2s_dout_pin: 14
|