Edzelf / ESP32Radio-V2

New version of the well known ESP32 Radio. Now optional I2S output!
Apache License 2.0
207 stars 50 forks source link

https streams: how to play them? #152

Open MarcEngrie opened 2 months ago

MarcEngrie commented 2 months ago

I have an https stream I want to hear: "https://streams.radio.dpgmedia.cloud/redirect/joe_gold/mp3".

Adding "streams.radio.dpgmedia.cloud/redirect/joe_gold/mp3" or "https://streams.radio.dpgmedia.cloud/redirect/joe_gold/mp3" or "streams.radio.dpgmedia.cloud:443/redirect/joe_gold/mp3" into the config/preferences does not work. Is the code capable of handling https streams? If so, how to let it know it is a https stream.

Thx

Edzelf commented 2 months ago

Sorry, the radio cannot play SSL streams. I do not understand why a station decides to use an encrypted stream. Maybe the are affraid that someone listens in....

aly-fly commented 2 months ago

Your links are redirects, not a stream. Click on the link. Redirect will resolve to an actual stream (HTTPS). Remove "s" in the URL. Confirm. Unsrecure stream starts playing. Copy the URL. http://icecast-qmusicbe-cdp.triple-it.nl/joe-gold.mp3

It works perfectly fine. Should work also on the Radio.

MarcEngrie commented 2 months ago

Ha! OK. Thx!

ArminHobbyProjects commented 1 month ago

Hi, I'm all new here, so I am reluctant to open a new topic ;-) I also have a one stream address that is not playing: ais-sa8.cdnstream1.com/2749_64.aac The track info is showing, but no sound. Works in browser and on a Frontier Silicon based webradio (Teufel360). Any hints?

Thank you for the great work!!! Armin

fanfanlatulipe26 commented 1 month ago

This stream is playing with my radio (running an old version Th 03 Nov 2022 ...) Tested with the web interface. I pasted ais-sa8.cdnstream1.com/2749_64.aac in the field "Enter a station/file here ..." and clicked PLAY

Edzelf commented 1 month ago

Also tested it. Plays well with my set-up (SPDIFF output). If you are using a VS1003, AAC is not supported.

ArminHobbyProjects commented 1 month ago

I tested it on a fresh build/download last night, using the Helix SPDIF optical output on a "china" ESP32-wroom board.... Also pasting the URL via the web interface

ArminHobbyProjects commented 1 month ago

OK, nothing wrong with the radio!

The stream is only ~64k, so the reuslting SPDIF sample rate is 22k. My amplifier (Denon PMA-50) cannot handle sample rates <44k. it is working perfectly on a cheap SPDIF to analog converter.

I guess there is no option for an upsampling of the SPDIF output?

ArminHobbyProjects commented 1 month ago

...just for documentation on how to obtain a 44,1k bitrate from a 22,05k stream: In helixfuncs.h/playChunk(), double the samplerate and output each sample twice.

Though the 64kbit stream does not really sound adequate on HIFI equipment ;-(

Again thanks for the great effort&prompt support! Armin