File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ microphone:
3030 bits_per_sample : 16bit
3131 sample_rate : 48000
3232
33- # TODO(fortuna): I couldn't get the speaker to work yet. I just hear a "pop".
3433speaker :
3534 - id : main_speaker
3635 platform : i2s_audio
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ esphome:
1212 then :
1313 - switch.turn_on : enable_speaker_amp
1414 - delay : 500ms
15+ # Set a reasonable default volume
16+ - speaker.volume_set :
17+ id : main_speaker
18+ volume : 0.5
1519 - light.turn_on :
1620 id : status_led
1721 red : 0%
@@ -22,21 +26,9 @@ esphome:
2226
2327logger :
2428
25- # RTTTL hardcodes 16 kHz internally, so override the DAC and speaker sample rate.
26- audio_dac :
27- - id : !extend es8311_dac
28- sample_rate : 16000
29- # buffer_duration: 100ms
30- # mic_gain: 30dB
31-
32- speaker :
33- - id : !extend main_speaker
34- sample_rate : 16000
35- # buffer_duration: 500ms
36-
3729rtttl :
3830 speaker : main_speaker
39- gain : 1.0
31+ gain : 0.2
4032
4133# Boot button: play a sound and toggle LED
4234binary_sensor :
You can’t perform that action at this time.
0 commit comments