Giter Site home page Giter Site logo

Comments (4)

Edzelf avatar Edzelf commented on July 16, 2024

This is quite a different device. It retrieves files from the server according to a playlist and play them later. Its is in fact much simpler than the ESP32-Radio. I doubt if there are public accessible servers that provide this service. If there are, I will be happy to develop a device like the DM440 on ESP32-Radio hardware.

ESP32-Radio is a real-time player. That makes it impossible to repair gaps in the data stream caused by a slow Internet connection..

from esp32-radio.

koskee avatar koskee commented on July 16, 2024

I understand that "fixing" small gaps in the stream with other content wouldnt really be possible/would likely sound terrible lol..

What I was trying to say is..
Say for instance that when I stopped the player for the night, that for the first while it continues to stream, but instead of playing the audio, it is simply diverting the data and writing it into a cache on the SD card (available free space).

Essentially the ring buffer becomes huge, (up to the 8,16,or 32Gb capacity of the card or whatever is specified in configuration. Since you can already read files from the SD, and already play the live stream, then say if my cache is set to record a few hours, then it effectively caches that duration of the stream directly to the SD, before turning off. That way, if it is having trouble maintaining a decent connection the next day, it can detect a buffer underrun , and automatically switch to reading the cached data from the SD card while it waits for the network latency / throughput to improve.

Might need some creativity to figure out at what point it decides to switch back, as I'm guessing accessing two streams at once would be either resource intensive, or just not possible.

Perhaps that is a better explanation? 🙂

from esp32-radio.

Edzelf avatar Edzelf commented on July 16, 2024

I do understand it. But connection errors will always cause missing data which cannot be repaired.
If during the night the connection is better, you might choose to buffer the stream during the night and play the buffered contents during the day. But the good thing of radio is the real-time aspect. Who is interested in yesterdays news?

from esp32-radio.

koskee avatar koskee commented on July 16, 2024

well, to be fair, there are a lot more uses for radio than just news..
when it is used for music, it becomes a lot less time sensitive, as most music is recorded in the first place.
I'm just interested in having some data from the stream cached to provide a fallback that won't require selecting a new stream, whether that selection happens automatically or not.

Going back to the use case i have previously described in a workplace setting, since everyone seems to have different music preferences, it is hard to select something that everyone will be happy with. So I am looking to propose a rotating station selection scheme. That will work great as long as the tech holds up, but I've noticed that at times of increased network latency, the stream can't be grabbed fast enough to be listenable. Having the sound cutting out every 1-10s becomes annoying VERY fast, and ultimately requires switching to a different stream.
Now in terms of the rotating station selection, I can see some people getting pretty upset if its rightfully their turn, but they get skipped over because the network is lagging. So I just thought it would be a neat feature if the radio could preemptively acquire data when the stop button is pressed to be made available the next day as a backup data stream

from esp32-radio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.