Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What will be used for transferring of audio data? #3

Open
kingsimba opened this issue Sep 14, 2023 · 2 comments
Open

What will be used for transferring of audio data? #3

kingsimba opened this issue Sep 14, 2023 · 2 comments

Comments

@kingsimba
Copy link

I don't know about audio or I2S. Asked just out of curiosity.
Are you planning to use ESP-NOW to transfer audio data? Does it have enough bandwidth?

@nielsnl68
Copy link
Owner

My intention is to use the code from: https://github.com/atomic14/esp32-walkie-talkie for the audio part. That worked.
Have a look at this vlog: https://www.youtube.com/watch?v=d_h38X4_eQQ

@kingsimba
Copy link
Author

The code in esp32-walkie-talkie is using broadcast packet. https://github.com/atomic14/esp32-walkie-talkie/blob/451b8718c7ccf2d2ba74da97ea4933ba091c260c/lib/transport/src/EspNowTransport.cpp#L67

Because there are at most 250 bytes for one ESP-NOW packet. At 8000Hz-16bit, there will be 8000*2/250 = 64 packets / second.
At this rate, I think the packet loss ratio is acceptable. But if more than 2 or 3 people are broadcasting at the same time, I think it will be problematic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants