ESP-NOW Low Latency Streaming of Audio #605
-
I now have successful content, there are three ESP32, ESP1 is responsible for reading MP3 from SD card, and then send to ESP2 and ESP3 through ESP NOW. The problem is that the music played by ESP2 and ESP3 is not in sync, how can I solve this problem. The example I use is "communication-espnow-send" with "communication-espnow-receive" |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Actually, you can't: they will always be out of sync because they might not start at the same time or the processors have slightly different clock speeds. So the challenge is to minimise this difference so that it ins not disturbing too much. The easiest solution is just to shut the door between the rooms, so that it does not disturb! The best that you can try to do is to fill some buffer on the receiving system and add some logic to make sure that they both start to play at the same time and re-sychronize at the start of the next title. How far are they currently apart ? |
Beta Was this translation helpful? Give feedback.
-
Oh, sorry I mean distance in time: Is it a couple of seconds or half a second... |
Beta Was this translation helpful? Give feedback.
-
I'm using "StreamCopy" to play music on the receiving end, and I want to change it to "AudioPlayer", so how do I change it? This is my code now:
I changed the code:
An error will occur:
|
Beta Was this translation helpful? Give feedback.
-
I am not sure if this makes any sense, but I suggest that you look at the class documentation to figure out what you need to provide to the constructor. It should not be too difficult to implement this... |
Beta Was this translation helpful? Give feedback.
Actually, you can't: they will always be out of sync because they might not start at the same time or the processors have slightly different clock speeds. So the challenge is to minimise this difference so that it ins not disturbing too much.
The easiest solution is just to shut the door between the rooms, so that it does not disturb!
The best that you can try to do is to fill some buffer on the receiving system and add some logic to make sure that they both start to play at the same time and re-sychronize at the start of the next title.
How far are they currently apart ?