Save audio from I2S mic to .wav file on SD card #440
-
Hi! This is my code:
Any help is greatly appreciated! 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Not sure what exactly the issue is, but I think you should
I am not sure if the approach to set up the logic before the file really exists does work. In my sketches I used to do this setup only after I had an open file, by calling the corresponding begin methods: see https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/examples-audiokit/streams-audiokit-sd-audiokit/streams-audiokit-sd-audiokit.ino |
Beta Was this translation helpful? Give feedback.
-
Thanks for the input! This is the updated sketch:
I set AudioLogger to Debug, and this is what I get:
I'm not sure what it's supposed to say for a case like this, but I can't detect any errors myself - can you tell if something is wrong from the debug log? Thank you for your help! I appreciate it 🙏 |
Beta Was this translation helpful? Give feedback.
Thanks for the input!
I tried to implement the changes you proposed, however, I still can't seem to get it to write anything in the file that is being created...
This is the updated sketch: