tosa-no-onchan / esp32-http-mic

1 stars 0 forks source link

Reduce latency #1

Open SinanAkkoyun opened 2 weeks ago

SinanAkkoyun commented 2 weeks ago

How can I reduce the latency? Currently, it takes at least 5s latency to be received, however I hoped for a real-time web stream

tosa-no-onchan commented 2 weeks ago

Thank for your asking.

I think, please change some parameters the follwoing. Now,it has 2 sec bufers,i think.

app_httpd_mic.c

const int record_time = 2; // second const int headerSize = 44; //const int waveDataSize = record_time 88000; //const int waveDataSize = record_time 16000 * 2; // now 2 sec buffer change here

const int waveDataSize = 1 16000 2; // 1 sec buffer or const int waveDataSize =16000 * 2 / 2; // 0.5 sec buffer

sampling 16K[Hz] / sec and stereo

But I made this programes for 4 yeras before, then i might get mistake.