Comments (4)
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.
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.
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.
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)
- Define GPIO pins for VS1053 HOT 2
- main.cpp does not compile HOT 4
- Few qeustions before building HOT 4
- Audio Transformer HOT 12
- OLED SSD1306 128x32 support HOT 1
- Adding LCD screen created choppy audio HOT 5
- Newbie Help HOT 45
- ESP32 Won't Connect To My WiFi AP HOT 9
- Just a wish, analog line in / aux- in
- SD card unable to play. HOT 6
- How to compile in Visual Studio? HOT 2
- Adding ability to read pictures from USB
- Problem in compiling. HOT 1
- stations select
- IR receiver does not work on long press
- Maximum line length in config file - 150
- Choppy audio debug suggestions?
- Audio not working vs1053 HOT 8
- Can be combined with FM
- ESP32 Edzelf Radio HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32-radio.