vosk-api icon indicating copy to clipboard operation
vosk-api copied to clipboard

{Question] How to fetch logs and reduce CPU usage

Open nishanth-cn opened this issue 1 year ago • 3 comments

Hi

I am trying to use vosk library for audio to text convertion in server. When I try to launch multiple apps and use 10-15 clients to run a audio script and convert audio in each app, my server is crashing without any logs. Setting any log level is not helping to get vosk logs. How can I get vosk logs in a file , is there any crash log file in VOSK or any log callback ? Also when I try to launch more than 100 threads in server, CPU usage shoots up drastically. All threads create individual recognizer but I am loading model only once. So I am looking for suggestions to reduce CPU usage.

Thanks in Advance Nishanth

nishanth-cn avatar Sep 01 '22 18:09 nishanth-cn

it depends on your server hardware

nshmyrev avatar Sep 01 '22 19:09 nshmyrev

@nshmyrev what about logs ? any ways to get crash logs ?

nishanth-cn avatar Sep 02 '22 11:09 nishanth-cn

Logs are printed on standard output. The process is probably killed by OOM detector, you will not get logs then but a message in system log.

nshmyrev avatar Sep 02 '22 19:09 nshmyrev