Question about audiokit-sd_wav #988
-
Hi pschatzmann! Hope you doing great! I have a couple of questions regarding saving sound on a file. I been trying to build an application that hears music and saves it on a file every 10-15 seconds so i look to the documentation i got this. first all the instances:
and then, the loop:
but what i found is that in each iteration the recorded sound will be appended, and i need the file with just the last 15 seconds recorded. Is there a way to make an overwrite operation each time Thank you in advance and hope you had a great day! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
In the Wiki https://github.com/pschatzmann/arduino-audio-tools/wiki/Encoding-and-Decoding-of-Audio you find:
This has nothing to do with my project: here is the link to the official SD documentation: https://www.arduino.cc/reference/en/libraries/sd/ |
Beta Was this translation helpful? Give feedback.
-
I would open the file in the beginning of the loop and at the end of the loop close it again. |
Beta Was this translation helpful? Give feedback.
-
No it's not: it's doing exectly what you tell it to do! I don't like to answer to questions which are already properly documented in the Wiki. Please re-read the chapter about Encoding carefully again! |
Beta Was this translation helpful? Give feedback.
In the Wiki https://github.com/pschatzmann/arduino-audio-tools/wiki/Encoding-and-Decoding-of-Audio you find:
This has nothing to do with my project: here is the link to the official SD documentation: https://www.arduino.cc/reference/en/libraries/sd/
I suggest that you have a look at the seek method!