Trying to extract the stream data directly from I2S stream from audiokit #1587
-
I am trying to store the data stream from the built in microphone and/or the line in into my own arrays but somehow im unable to do it. I've spent quite some time looking at different examples and managed to get the different streams to work, like streaming to CSV to print on terminal and sending it to I2S output but I'm struggling to get the actual data values as buffer arrays. So far this is the code im testing to try and get this to work. Any help in terms of understanding what I'm doing wrong or what I should try would be most welcome.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Can also add that I was using the code from this example |
Beta Was this translation helpful? Give feedback.
-
Please keep in mind that Audio is using up a lot of RAM so 64 samples will not take you far, so you better use an ESP32 that supports PSRAM. Here is an example sketch ps. I dont recommend to use the legacy I2S API: this will not work with the new ESP32 core version any more |
Beta Was this translation helpful? Give feedback.
Please keep in mind that Audio is using up a lot of RAM so 64 samples will not take you far, so you better use an ESP32 that supports PSRAM. Here is an example sketch
ps. I dont recommend to use the legacy I2S API: this will not work with the new ESP32 core version any more