Recording to WAV only results in a hissing noise #1667
-
Hi there I'm trying to record audio from an I2S ADC to a WAV file on an SD card for an aviation project. Currently, I've managed to generate audio files, but the content is just hissing noise. I suspect there's an issue with my sketch, but I haven't been able to identify the cause. For testing, I've kept the sketch as simple as possible and close to the examples, but I still can't get it to work. I'd greatly appreciate any help or guidance in resolving this issue, as I don't have a ton of experience.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I never tried to record from an unconnected device, so I don't know what to expect. You have a major bug in your logic: you cant just copy one format and pretend that it is another format! |
Beta Was this translation helpful? Give feedback.
-
I tested it now and it works pretty well. Thanks for the thought-provoking impulse. Now, importing the whole audiotools and audiodriver libraries take up a lot of space, 94% of flash in my case. I know audio processing is a rather hard exercise for an esp, but I still want to use it with other non-audio hardware. I plan to use a task-handler to pin the audioprocessing to a dedicated core to ensure 100% cpu time. The rest can easily be done on the other core. |
Beta Was this translation helpful? Give feedback.
-
94 % ? I guess you just forgot to select the proper Partition Scheme! |
Beta Was this translation helpful? Give feedback.
I never tried to record from an unconnected device, so I don't know what to expect.
You have a major bug in your logic: you cant just copy one format and pretend that it is another format!
Stick to one data format or perform a proper conversion as described in the Wiki...