alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
7.7k stars 1.08k forks source link

Choose CPU core via API? #1288

Closed fquirin closed 1 year ago

fquirin commented 1 year ago

I'm running some tests on Orange Pi 5 and noticed that Vosk is running on one of the efficiency cores. OPi5 has 8 cores (4 performance, 4 efficiency). Its still faster than realtime 😄, so its ok for streaming audio use-cases, but for batch transcriptions it could be much faster. Can we tweak the code somehow to select a performance core instead?

nshmyrev commented 1 year ago

Core layout is arranged by the OS, not software. If you run more heavy processing I suppose it should move the process to performance core.

fquirin commented 1 year ago

Thanks, I'll just look for a Linux tool instead :-)