Page 1 of 1

esp32 webserver with esp-adf

Posted: Wed Sep 27, 2023 11:34 am
by syed.abbas
I am currently using ESP32 WROOMD module. My application esp32 is acting as a webserver and it plays mp3 from audio data being received from client side (in this case it is Mobile app which sends the mp3 data into chunks byte (1KB each) ). My question is can esp-adf be used to get these data into chunks and decode into mp3 and write to i2s stream?

I followed these examples. But couldn't able to found where I can typecast my bytes so that it reads each chunks being sent and decode it.

1. https://github.com/espressif/esp-adf/tr ... e_http_mp3 (This is getting whole data from url)

2. https://github.com/espressif/esp-adf/tr ... p3_control (This is getting data into from the file path being saved in SD card)

Re: esp32 webserver with esp-adf

Posted: Tue Oct 17, 2023 10:26 pm
by felixcollins
Read this https://docs.espressif.com/projects/esp ... index.html

You need to use a raw stream element and implement code to write your data in.

Or... perhaps you could use the HTTP stream and use that to hit a URL?