Hi there, I'm using esp32-wroom-32e with inmp441 to record audio and save it using SPIFFS. My goal is to send the audio via WIFI and get a response to play. Weird thing is after two conversations, the i2s recording sample_rate drop and the bytes read are almost half of the normal one.
I did delete the old audio at the beginning of each conversation but it didn't work.
I also tried not saving the file and the problem fixed, but thats not what my program was supposed to work.
I did check usage of SPIFFS, my totalBytes is around 1400000bytes, my file is usually around 200000bytes, but the sampling rate still gets buggy after 2-3 conversations.
Can someone give a hint or point a direction? I appreciate all the help. Thanks.
Not sure I understand exactly, but it sounds like as you have more data in spiffs it takes longer to complete it's action and that afects the sampling rate.
No, I try not saving the file using SPIFFS and the problem solved, but it could be coincident.
Yes, I check the file size, it never reach the max limit of SPIFFS.
SOLVED. YES 8 khz is good for at least ten conversations.
But I can't figure out the theory deep down. I did output the process of saving data to serial and it seems like it doesn't take long to save the data in time. Is there a way to monitor the actual saving process?