Skip to content
Discussion options

You must be logged in to vote

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

  • to delete the file before the processing with SD.remove(fn);
  • commented out the cfg.buffer_size and cfg.buffer_count
  • changed stopRecording() to
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();
}

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
1 reply
@gohai
Comment options

Comment options

You must be logged in to vote
11 replies
@gohai
Comment options

@pschatzmann
Comment options

@gohai
Comment options

@pschatzmann
Comment options

@gohai
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants