Kitt-AI / snowboy

Future versions with model training module will be maintained through a forked version here: https://github.com/seasalt-ai/snowboy
Other
3.07k stars 997 forks source link

Snowboy stability issue on Raspberry Pi recording with USB microphone #637

Open gxc176 opened 4 years ago

gxc176 commented 4 years ago

Hey all has anyone else experienced and issue with Snowboy running on the Raspberry Pi and ceasing to detect the hotword after an hour or so of being up?

Running the detection software in Node 10 and using the arecord driver with a USB Jabra microphone. The description is that after an hour or so of being up, the software no longer triggers on any hotwords but does not throw errors and is by all metrics still running.

I think I've been able to trace it back to a memory issue, where available memory is not being cleared out properly causing the software to overload and eventually fill up memory and stop detection. There also seems to be an issue with the way Snowboy clears microphone memory when using arecord

If anyone else has noticed this issue and has an idea as to why it is happening please let me know, or any ideas on possible causes are also welcome.

evancohen commented 4 years ago

At first I also thought it was a memory issue, but actually it's an issue with the way that arecord implements wav. It stops recording after the max wav file size, even though it's streaming.

Decent summary of the issue here: evancohen/sonus#94