Thanks for testing @Raspiaudio, and thank for making this board; it is just want I want to be cloud-free. To be clear, I updated my config as follows in the code block (which includes GPIO21 which apparently turns on the amplifier according to the docs).
Normalising the tests, no external speaker,
The volume level in HA is set to max, and lower and it can’t be heard in default, as installed and downloaded form.
I will rerun all the tests with another muse proto, including squeezelite, all playing the same mp3 file.
*Please note I have no hardware mods - no buttons or resistors connected, just USB power, and a 4R speaker, which I’ll remove for my next test round.
UPDATE:
#99dB BT, 104 dB squeezelite, 100dB HA from (ESPHome Media Players) , 101dB from https://raspiaudio.github.io/, soundcheck app, iphone, 5mm from onboard speaker
So squeezelite is the winner (3dB louder), and my other home devices can use it, not just HA.
I should rollback the config to default for HA and see what it’s like without the PULLDOWN, but I’m over testing for now.
II’ll await microphone/speech support in HA before I try the HA build again.
@Raspiaudio could I PLEASE request on the next spin you make the speaker solder trace bigger so it is easier to cut, I needed to get a very large magnifier to see where to cut - I actually tried but gave up it was so small and didn’t want to damage the track next to it.
substitutions:
name: t-av-office-601d84
friendly_name: "AV OFFICE 601D84"
#99dB BT, 104 dB squeezelite, 100dB HA from (https://esphome.github.io/media-players/) , 101dB from https://raspiaudio.github.io/, soundcheck, iphone, 5mm from onboard speaker
# packages:
# raspiaudio.muse-proto: github://esphome/media-players/raspiaudio-muse-proto.yaml@main
esphome:
name: ${name}
name_add_mac_suffix: false
on_boot:
priority: 10
then:
- lambda: |-
gpio_reset_pin(GPIO_NUM_23);
gpio_set_direction(GPIO_NUM_23, GPIO_MODE_OUTPUT);
gpio_set_pull_mode(GPIO_NUM_23, GPIO_PULLDOWN_ONLY);
esp32:
board: esp-wrover-kit
framework:
type: arduino
logger:
ota:
captive_portal:
web_server:
improv_serial:
media_player:
- platform: i2s_audio
id: media_out
name: ${friendly_name}
dac_type: external
i2s_lrclk_pin: GPIO25
i2s_dout_pin: GPIO26
i2s_bclk_pin: GPIO5
mode: mono
mute_pin:
number: GPIO21
inverted: true
binary_sensor:
- platform: gpio
pin:
number: GPIO0
inverted: true
mode:
input: true
pullup: true
name: ${friendly_name} Button
on_click:
- media_player.toggle: media_out
api:
encryption:
key: QcLZY9xhhrMvGhYGgyRyeL4aJwKk/0dTZdiNxV96+KI=
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
# Set this to the IP of the ESP
static_ip: 10.0.xx
# Set this to the IP address of the router. Often ends with .1
gateway: 10.0.xx
# The subnet of the network. 255.255.255.0 works for most home networks.
subnet: 255.255.255.0
dns1: 10.0.xx
dns2: 10.0.xx