I’m having problems getting any sound out of that device.
My ESPHome config for that device is this:
substitutions:
name: media-kit-13-a17340
friendly_name: "M5Stack Atom Speaker Kit"
esphome:
name: ${name}
name_add_mac_suffix: false
project:
name: m5stack.atom-speaker-kit
version: "1.0"
esp32:
board: m5stack-atom
framework:
type: arduino
dashboard_import:
package_import_url: github://esphome/media-players/m5stack-atom-speaker-kit.yaml@main
wifi:
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
- ssid: !secret wifi2_ssid
password: !secret wifi_password
manual_ip:
static_ip: IP
gateway: gateway IP
subnet: 255.255.255.0
dns1: dns IP
logger:
api:
ota:
password: "password123"
captive_portal:
improv_serial:
media_player:
- platform: i2s_audio
id: media_out
name: ${friendly_name}
dac_type: external
i2s_lrclk_pin: GPIO21
i2s_dout_pin: GPIO25
i2s_bclk_pin: GPIO22
mode: mono
binary_sensor:
- platform: gpio
pin:
number: GPIO39
inverted: true
name: ${friendly_name} Button
on_click:
- media_player.toggle: media_out
light:
- platform: fastled_clockless
name: ${friendly_name}
pin: GPIO27
chipset: SK6812
num_leds: 1
rgb_order: grb
this config is pretty much exactly as listed in the repository: https://github.com/esphome/media-players/
the only modifications are wifi settings, static ip and ota password.
I can see the device in ESPhome and in HA, but when I try and play anything there is just silence.
I tried playing mp3 song, jellyfin music (via jellyfin integration), even PicoTTS is silent.
I know that my Pico TTS is working fine because I can “play” text in a web browser but when I change the output to m5Stack Atom Speaker Kit nothing happens ( it does not play as there is no visible progress ).
ESPHome log for that device:
[20:23:12][C][api:138]: API Server:
[20:23:12][C][api:139]: Address: IP.IP.IP.IP:6053
[20:23:12][C][api:143]: Using noise encryption: NO
[20:23:12][C][improv_serial:032]: Improv Serial:
[20:23:12][C][audio:135]: Audio:
[20:24:35][D][media_player:059]: 'M5Stack Atom Speaker Kit' - Setting
[20:24:35][D][media_player:066]: Media URL: https://my.homeassistant.address/api/tts_proxy/0d9d06728960ef753fbcce4c765171c3d97953fd_en-gb_-_picotts.wav
INFO IP.IP.IP.IP: Error while reading incoming messages: Error while reading data: [Errno 104] Connection reset by peer
INFO Disconnected from ESPHome API for IP.IP.IP.IP
WARNING Disconnected from API
INFO IP.IP.IP.IP: Ping Failed: Error while reading data: [Errno 104] Connection reset by peer
WARNING Can't connect to ESPHome API for IP.IP.IP.IP: Error connecting to ('IP.IP.IP.IP', 6053): [Errno 111] Connect call failed ('IP.IP.IP.IP', 6053)
INFO Trying to reconnect to IP.IP.IP.IP in the background
INFO Successfully connected to IP.IP.IP.IP
[20:24:46][D][api:102]: Accepted ::FFFF:C0A8:147
[20:24:47][D][api.connection:861]: Home Assistant 2022.7.1 (::FFFF:C0A8:147): Connected successfully
where IP.IP.IP.IP is the address of the device in question
I am bit lost here - what am I missing?
Any help as usual is greatly appreciated.
Andre