Skip to content

Commit ff96e3a

Browse files
committed
Tweak demo
1 parent 47d2412 commit ff96e3a

2 files changed

Lines changed: 5 additions & 14 deletions

File tree

boards/hosyond-es3c28p/audio.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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".
3433
speaker:
3534
- id: main_speaker
3635
platform: i2s_audio

boards/hosyond-es3c28p/demo.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff 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

2327
logger:
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-
3729
rtttl:
3830
speaker: main_speaker
39-
gain: 1.0
31+
gain: 0.2
4032

4133
# Boot button: play a sound and toggle LED
4234
binary_sensor:

0 commit comments

Comments
 (0)