Esp32 Internet Radio - getting streaming urls to work

I'd be most grateful for ideas please...

So I've made an ESP32 internet radio I found here: Internet radio with the ESP32 update

It works and sounds pretty good. The problem is that when I enter new station URLs, it doesn't like the majority of them...

I can get about 10% of the streaming URL's to work, but the rest fail to connect and the radio reboots.

I assume I won't be able to fix the problem, but if so, I'd like to know how to find URLs that will work..

Interesting project. Can You put the working ones together, finding what they have in common, and do the same for the not well working ones?
That's what comes up here. No further knowledge.

I've sort-of done that... I've found they need http rather than https prefix.

They also need to be an MP3 stream, although it isn't always obvious.

It is indeed a fun and interesting project, which I've modded just to be a receiver that works with an external amp.

@st_4489665 it's a little tricky finding some of the urls but here is an example of one method using the following link.

Press F12 to bring up the "inspection panel" and make sure you have "Network" selected on the menu, choose a mp3 channel and hit play. In the Network panel it will start logging, under Name look for a small green rectangle with a small play button, it should say media under the Type heading. Then copy the url that is in the next column to the right.

The procedure is similar for other channels but sometimes you are looking for "stream" or "media-ice" and a bunch of other things.

I have 10 channels that cover different genres and that is adequate

Okey. Anyway, You know more than I do.

Thanks, I will give it a go.

Ok, so I've done this and found URLs quite easily, fantastic!

Trouble is, some still don't want to play on the device... I might get 0.5 seconds of music followed by a restart.

I wish I knew what the problem is, and wonder whether it's a buffering issue with some streams? I've tried selecting lower quality as possible, but that still doesn't seem to do it.

Yes it can be a little hit and miss, as I said if you can locate 10 or so with a fairly decent cross section of music choice that should be enough.

It's been a while since I did this project so I can't remember exactly how I found all my channels but here are a couple of links to some of them. The first is a list of British channels that receive quite well.

'http://vis.media-ice.musicradio.com'

'https://ais-sa5.cdnstream1.com/b68000_128mp3'
'https://funkydiscoradio.stream.laut.fm/funkydiscoradio?t302=2024-01-27_03-33-19&uuid=c268ecff-9865-4974-9641-f962592c6f58'

'https://classichitsradio.streamingmedia.it/play'

B.T.W the last 4 should play a constant stream the same as listening to any radio station

B.T.W again - it's a possibility that going to too high a bit rate will over tax the system, something to look into.

Thanks, I will be happy enough if I can get a handful of stations that cover my needs.

Tbf, some of the original German stations are quite good too, so I will leave some on there.

I will update if I find out which type of streams work better.

I removed a link that no longer works :roll_eyes:

My first though when I read this is power.
Are you sure the battery and/or the boost converter can keep up with the 1A current demand of the PAM amplifier and 0.5A peaks of the ESP. Poor (thin/signal) wiring can be a problem too.
Leo..

I've actually got it powered by usb and hooked up to an external amplifier with it's own power source.

Using the above method I found some URL's and eventually got one to play. It meant going through a lot of them though.

I just don't understand why some streams won't work, even though they'll play ok in the browser.