Open Manhem opened 1 year ago
Hello. I am having same issue. I was able to play mp3 files and the log shows that it is playing; however, there is no audio coming out of the speaker. Creating a tts message still works. Just unable to play mp3 files. I suspect it is one of the updates I but not sure which ones. I believe the last known working version was 2022.12.0.
Did you managed to get it working??
@duceduc are you sure that volume is not on 0? I have seen such problem... Anyway, my m5echo works just fine.
Yes, volume is at max. I can hear the tts message through the speaker, just not mp3 files. The url that outputs in the log I can play in the browser. So the url is valid.
It seems that the problem comes when I sending out the file to the device. Then I get this: [ssl_client.cpp:132] start_ssl_client(): socket error on fd 52, errno: 104, "Connection reset by peer" [WiFiClientSecure.cpp:135] connect(): start_ssl_client: -1
So when it starts to play, there is nothing to play.
I have tried everything so I can't say exactly what version this happend, because I don't remember.
You are saying you never got it to work?? This is the log when I try to play an mp3 files. The url below does play from the pc browser.
[17:36:47][D][media_player:059]: 'razer-leviathan-player' - Setting
[17:36:47][D][media_player:066]: Media URL: http://192.168.1.20:8123/media/local/music/Ray%20Charles%20-%20Ellie,%20My%20Love.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3NjAyMWU5Njg3ZDQ0OWYzOTAwYjE2MmM1NGIyNTgwYyIsInBhdGgiOiIvbWVkaWEvbG9jYWwvbXVzaWMvUmF5IENoYXJsZXMgLSBFbGxpZSwgTXkgTG92ZS5tcDMiLCJwYXJhbXMiOnt9LCJpYXQiOjE2NzU3NTkwMDcsImV4cCI6MTY3NTg0NTQwN30.ODU3TOApCls2dXJftpp2HlnJQrMv5GkKwjOObo2x8Jg
[17:36:47][D][main:317]: audio_info: Connect to new host: "http://192.168.1.20:8123/media/local/music/Ray%20Charles%20-%20Ellie,%20My%20Love.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3NjAyMWU5Njg3ZDQ0OWYzOTAwYjE2MmM1NGIyNTgwYyIsInBhdGgiOiIvbWVkaWEvbG9jYWwvbXVzaWMvUmF5IENoYXJsZXMgLSBFbGxpZSwgTXkgTG92ZS5tcDMiLCJwYXJhbXMiOnt9LCJpYXQiOjE2NzU3NTkwMDcsImV4cCI6MTY3NTg0NTQwN30.ODU3TOApCls2dXJftpp2HlnJQrMv5GkKwjOObo2x8Jg"
[17:36:47][D][main:317]: audio_info: buffers freed, free Heap: 174588 bytes
[17:36:47][D][main:317]: audio_info: Connection has been established in 15 ms, free Heap: 173804 bytes
[17:36:47][D][main:229]: Playback started!
[17:36:47][D][main:317]: audio_info: MP3Decoder has been initialized, free Heap: 144604 bytes
[17:36:47][D][main:317]: audio_info: stream ready
buffer filled in 17816 ms
[17:36:47][D][main:317]: audio_info: ID3 framesSize: 192461
[17:36:47][D][main:317]: audio_info: ID3 version: 2.3
[17:36:47][D][main:317]: audio_info: ID3 normal frames
It has been working in an older version of ESPhome, but I don't remember which one. If I play the mp3 file in the browser it works, so the URL is ok.
Same problem here ,but I think this happens only with some streams as , I can`t reproduce one url that I have got but with the rest it is OK , It is working ok when using esphome version that uses library, ESP32-audioI2S @ 2.1.0 but if I use library ESP32-audioI2S @ 2.0.6 and I try to play, esphome gets restarted , stream I m having problems with : "http://s40.myradiostream.com:8520/listen.mp3?1676217274493" Note version 2.1.0 is older than 2.0.6 by a mistaken numbering of the first one.
How can I tell ESPhome to use this old version 2.1.0? Is there a file anywhere that I shall change some stuff?
@Manhem From my understanding, there used to be a feature where we can specify what version to install. It was removed because it was too buggy.
In mi case I installed esphome in my laptop with ubuntu using python pip and it´s easy to change version: pip3 install esphome==2022.11.5 this is to downgrade to the last version that is working for me.
You cant tell which library is using looking the compilation log :
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
Here are they: The last version that is working for me 2022.11.5 -> ESP32-audioI2S @ 2.1.0
The first that is not working 2022.12.0 -> ESP32-audioI2S @ 2.0.6
Same here used to play MP3s but after update can only play radio, nothing else not even text to speach
Esphome mediaplayer cant play anything from https. https://github.com/esphome/feature-requests/issues/2179 https://github.com/esphome/issues/issues/4369 Nobody cares about the solution.
I'm experiencing a similar (or the same?) issue and it looks like the network setup is to blame. I'm using ZeroTier both to access my Home Assistant instance from elsewhere and to act as a proxy for Home Assistant (and, thus, for ESPHome). It looks like ESP tries to access the URL of the Home Assistant, but the ESP itself isn't connected to the Proxy, so it tries to access the remote server's IP address, but fails to do that. It seems like that's the case, though. I'm not sure about why exactly can we listen to radio, but I assume it has to do something with how accessing radio stations is done differently from accessing files on home assistant (?)
I haven't been able to fix the issue yet, but if I get there, I'll post an update.
Another question is was anything related to networking (probably specifically DNS-related?) changed in the update? Because I think my setup has been working previously but after some updates it stopped.
The problem
After I update ESPhome firmware I lost the opportunity to use my Mediaplayer I build my own. It's a ESP32 with UDA1443 using I2S. The description I found at your place.
I can see the WiFi level. But if I try to play a file, it starts and directly closes. I have installed Music Assistant and here I can't find the player. Home Assistants Media can find it but I can't play anything. If I take a closer look the player is idle all the time.
Maybe I have put in the wrong board, but I have tried some different ones with the same result. The old one I used was not working so I also try others.
What am I doing wrong or maybe a bug..
You can find a picture over my board down here.
Which version of ESPHome has the issue?
2022.12.xx
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2023.1.xx
What platform are you using?
ESP32
Board
ESP32
Component causing the issue
I2S ??
Example YAML snippet
Anything in the logs that might be useful for us?
Here are some more information I found: [17:33:25][D][media_player:066]: Media URL: https://xxxxxx.duckdns.org/media/local/05.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI5ZjUxODg3YTMzZGE0Mzc4YWE0N2IzODkwYTg4Yjc1MiIsInBhdGgiOiIvbWVkaWEvbG9jYWwvMDUtdmFydF9kdV9hZW5fZ3Itd2xtLm1wMyIsInBhcmFtcyI6e30sImlhdCI6MTY3NTUyODM4OSwiZXhwIjoxNjc1NjE0Nzg5fQ.VK3D64RzIzysfM0b9MW9k3Dsww1J7JcXV0YnG7nRzZY [17:33:26][438503][E][ssl_client.cpp:132] start_ssl_client(): socket error on fd 52, errno: 104, "Connection reset by peer" [17:33:26][438504][E][WiFiClientSecure.cpp:135] connect(): start_ssl_client: -1 [17:33:32][D][media_player:059]: 'Media Player' - Setting [17:33:32][D][media_player:063]: Command: PLAY
Additional information