Skip to content

Commit 214675a

Browse files
committed
Remove adf dependency
1 parent 35f6e76 commit 214675a

File tree

1 file changed

+55
-29
lines changed

1 file changed

+55
-29
lines changed

esp32-s3-box-lite/esp32-s3-box-lite.yaml

Lines changed: 55 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ substitutions:
3636
esphome:
3737
name: ${name}
3838
friendly_name: ${friendly_name}
39-
min_version: 2024.9.0
39+
min_version: 2025.2.0
4040
name_add_mac_suffix: true
41-
platformio_options:
42-
board_build.flash_mode: dio
4341
on_boot:
4442
priority: 600
4543
then:
@@ -67,9 +65,6 @@ psram:
6765
speed: 80MHz
6866

6967
external_components:
70-
- source: github://pr#5230
71-
components: esp_adf
72-
refresh: 0s
7368
- source: github://jesserockz/esphome-components
7469
components: [file]
7570
refresh: 0s
@@ -205,16 +200,42 @@ light:
205200
restore_mode: RESTORE_DEFAULT_ON
206201
default_transition_length: 250ms
207202

208-
esp_adf:
209-
board: esp32s3boxlite
203+
i2c:
204+
scl: GPIO18
205+
sda: GPIO8
206+
207+
i2s_audio:
208+
- id: i2s_audio_bus
209+
i2s_lrclk_pin: GPIO47
210+
i2s_bclk_pin: GPIO17
211+
i2s_mclk_pin: GPIO2
212+
213+
audio_adc:
214+
- platform: es7243e
215+
id: es7243e_adc
216+
217+
audio_dac:
218+
- platform: es8156
219+
id: es8156_dac
210220

211221
microphone:
212-
- platform: esp_adf
222+
- platform: i2s_audio
213223
id: box_mic
224+
sample_rate: 16000
225+
i2s_din_pin: GPIO16
226+
bits_per_sample: 16bit
227+
adc_type: external
214228

215229
speaker:
216-
- platform: esp_adf
230+
- platform: i2s_audio
217231
id: box_speaker
232+
i2s_dout_pin: GPIO15
233+
dac_type: external
234+
sample_rate: 16000
235+
bits_per_sample: 16bit
236+
channel: left
237+
audio_dac: es8156_dac
238+
buffer_duration: 1000ms # The timer finished audio needs to fit entirely in the buffer
218239

219240
micro_wake_word:
220241
models:
@@ -230,7 +251,6 @@ voice_assistant:
230251
noise_suppression_level: 2
231252
auto_gain: 31dBFS
232253
volume_multiplier: 2.0
233-
vad_threshold: 3
234254
on_listening:
235255
- lambda: id(voice_assistant_phase) = ${voice_assist_listening_phase_id};
236256
- text_sensor.template.publish:
@@ -515,6 +535,12 @@ script:
515535
- lambda: id(voice_assistant_phase) = ${voice_assist_not_ready_phase_id};
516536

517537
switch:
538+
- platform: gpio
539+
name: Speaker Enable
540+
pin: GPIO46
541+
restore_mode: RESTORE_DEFAULT_ON
542+
entity_category: config
543+
disabled_by_default: true
518544
- platform: template
519545
name: Mute
520546
id: mute
@@ -636,48 +662,48 @@ image:
636662
- file: ${error_illustration_file}
637663
id: casita_error
638664
resize: 320x240
639-
type: RGB24
640-
use_transparency: true
665+
type: RGB
666+
transparency: alpha_channel
641667
- file: ${idle_illustration_file}
642668
id: casita_idle
643669
resize: 320x240
644-
type: RGB24
645-
use_transparency: true
670+
type: RGB
671+
transparency: alpha_channel
646672
- file: ${listening_illustration_file}
647673
id: casita_listening
648674
resize: 320x240
649-
type: RGB24
650-
use_transparency: true
675+
type: RGB
676+
transparency: alpha_channel
651677
- file: ${thinking_illustration_file}
652678
id: casita_thinking
653679
resize: 320x240
654-
type: RGB24
655-
use_transparency: true
680+
type: RGB
681+
transparency: alpha_channel
656682
- file: ${replying_illustration_file}
657683
id: casita_replying
658684
resize: 320x240
659-
type: RGB24
660-
use_transparency: true
685+
type: RGB
686+
transparency: alpha_channel
661687
- file: ${timer_finished_illustration_file}
662688
id: casita_timer_finished
663689
resize: 320x240
664-
type: RGB24
665-
use_transparency: true
690+
type: RGB
691+
transparency: alpha_channel
666692
- file: ${loading_illustration_file}
667693
id: casita_initializing
668694
resize: 320x240
669-
type: RGB24
670-
use_transparency: true
695+
type: RGB
696+
transparency: alpha_channel
671697
- file: https://github.com/esphome/wake-word-voice-assistants/raw/main/error_box_illustrations/error-no-wifi.png
672698
id: error_no_wifi
673699
resize: 320x240
674-
type: RGB24
675-
use_transparency: true
700+
type: RGB
701+
transparency: alpha_channel
676702
- file: https://github.com/esphome/wake-word-voice-assistants/raw/main/error_box_illustrations/error-no-ha.png
677703
id: error_no_ha
678704
resize: 320x240
679-
type: RGB24
680-
use_transparency: true
705+
type: RGB
706+
transparency: alpha_channel
681707

682708
font:
683709
- file:

0 commit comments

Comments
 (0)