esp32 webserver with esp-adf

syed.abbas
Posts: 1
Joined: Wed Sep 27, 2023 11:25 am

esp32 webserver with esp-adf

Postby syed.abbas » Wed Sep 27, 2023 11:34 am

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)

felixcollins
Posts: 125
Joined: Fri May 24, 2019 2:02 am

Re: esp32 webserver with esp-adf

Postby felixcollins » Tue Oct 17, 2023 10:26 pm

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?

Who is online

Users browsing this forum: No registered users and 49 guests