I have built a radio streamer/recorder with Node.js (repo here). This program will need to stream/record audio input 24/7, but I am having trouble running it for extended periods (see issue).
I use the node "mic" package to stream from my audio input with arecord; and after some debugging, I have found this to be the culprit. Consistently, after 9-10 hours, arecord reports the following error:
I have tried running arecord with the same command used by the node package,
I use the node "mic" package to stream from my audio input with arecord; and after some debugging, I have found this to be the culprit. Consistently, after 9-10 hours, arecord reports the following error:
(See issue).Received Info: overrun!!! (at least 33356345.350 ms long)
I have tried running arecord with the same command used by the node package,
arecord -t raw -c 2 -r 44100 -f S16_LE -D hw:0,0 /recordings/test.raw
, and it streamed for over 100 hours with no errors. So I'm wondering what "mic" does that causes arecord to report this error, and what I can do, if anything, to prevent it.