I2S recoding to SD card choppy (with esp32-s3 and INMP441) #2122
-
| Hello @pschatzmann et al, Could you please tell me what I am doing wrong in the code below. This captures speech, but the recording has audible glitches at irregular intervals - sample recording here.   This is with an esp32-s3 and INMP441, with latest  Thank you for your time and patience. | 
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
| Please follow the recommendations diven here! | 
Beta Was this translation helpful? Give feedback.
-
| Then test the SD write speed: it needs to be higher than the generated i2s data! | 
Beta Was this translation helpful? Give feedback.
-
| I did some tests (both with ESP 3.3.0 and ESP 3.2.1 ) with the AudioKit using this sketch and could not reproduce your issue: The AudioBoardStream is just an I2SStream that also sets up the codec chip.   ps. I also made some tests with your sketch and ended up with empty files. To correct this, I made sure 
 void stopRecording() {
  // close file first and print file size
  file.close();
  file = SD.open(fn, FILE_READ);
  Serial.print("File Size: ");
  Serial.println(file.size());
  file.close();
  micStream.end();
  encoder.end();
  copier.end();
} | 
Beta Was this translation helpful? Give feedback.
I did some tests (both with ESP 3.3.0 and ESP 3.2.1 ) with the AudioKit using this sketch and could not reproduce your issue:
The AudioBoardStream is just an I2SStream that also sets up the codec chip.
ps. I also made some tests with your sketch and ended up with empty files. To correct this, I made sure