snipsco / snips-issues

Feel free to share your bugs with us.
14 stars 5 forks source link

Snips-audio-server creates 90%+ Cpu loads even on idle in combination with respeaker gpio mics #213

Closed johanneskropf closed 4 years ago

johanneskropf commented 4 years ago

Lately the snips-audio-server process on a raspberry pi 3b+ running the latest stretch release and the latest snips update has started using high amounts of cpu even when in idle. This only occurs when the the seeed-voicecard drivers are installed. The loads go down to normal as soon as they are uninstalled and another microphone like the respeaker usb mic array or a playstation eye are used. The driver needs to be uninstalled. Just changing the asound.conf so that snips uses the usb mic is not enough for the snips-audio-server to stop using this much cpu. Once the seeed-voicecard driver is uninstalled and after a reboot the cpu usage goes down to normal. I also see the same behaviour to a lesser extent on a raspberry pi zero with the respeaker 2 mic hat and snips-satellite consuming 50+ percent cpu on idle. I would very much like to help get this resolved as the repeaker mics are your recommended hardware. you can find a forum thread here https://forum.snips.ai/t/very-high-cpu-usage-from-the-snips-audio-server-when-used-with-respeaker-gpio-mics/4022

johanneskropf commented 4 years ago

at least on the raspberry pi zero the cpu usage drops as soon as i disable audio playback in the snips.toml. so i guess there is a conflict between the snips-satellite and the seeed-voicecard

cpoisson commented 4 years ago

Hi @johanneskropf ,

Thanks for your feedback.

The issue is linked to #203.

It has also been discussed here respeaker/seeed-voicecard#193

I'm closing this one as a duplicate.