I'm a student using PocketSphinx on Android for continuous recognition. So I set it as background service to continuously listen for keyword search, but apparently it consumes a lot of CPU + battery. I thought this was a lightweight offline tool that does not consume CPU and battery much but turns out it uses quite a bit ( I expect other tools use more). Is there a way to improve this? If I use activity in android it gets killed instantly and I don't want that so I am using either background/foreground serive. Any insight shares?
Thank you in advance :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
I'm a student using PocketSphinx on Android for continuous recognition. So I set it as background service to continuously listen for keyword search, but apparently it consumes a lot of CPU + battery. I thought this was a lightweight offline tool that does not consume CPU and battery much but turns out it uses quite a bit ( I expect other tools use more). Is there a way to improve this? If I use activity in android it gets killed instantly and I don't want that so I am using either background/foreground serive. Any insight shares?
Thank you in advance :)
Profile you application, figure out where the most battery drain / cpu usage happens and optimize that part.