RX_MODE is not enabled #1984
-
Hello @pschatzmann. My goal is record to WAV file from LINE_IN. I'm trying to run this code below, but when copier.copy is executed, the following message appears in the console, What's the cause? Thanks in advance.
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I guess the problem is the following: You are trying to allocate I2S_BUFFER_COUNT * I2S_BUFFER_SIZE bytes = 20 * 262144. |
Beta Was this translation helpful? Give feedback.
-
Hello @pschatzmann, I left bufferSize as default (512 bytes) and the message continues going out. Any idea? |
Beta Was this translation helpful? Give feedback.
-
Hello @pschatzmann, I already solved. The problem was a conflict with AudioKit, but now, the audio recorded is not continuos. Listen the attached file. You can observe an intermittent sound (not lineal). As you could see, the loop only contents "copier.copy();" Do you know what would be the issue source? This is the bad audio. This below is good audio. |
Beta Was this translation helpful? Give feedback.
-
Hi again @pschatzmann, I have noticed that the problem is in WAV encoder, because if I disable it and only copy from-to line_in to line_out all is ok. Any idea? |
Beta Was this translation helpful? Give feedback.
I guess the problem is the following: You are trying to allocate I2S_BUFFER_COUNT * I2S_BUFFER_SIZE bytes = 20 * 262144.
This is way too much: An ESP32 has only 520 KB RAM...