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.92k stars 1.1k forks source link

Multi-treading example in python #1020

Open ghost opened 2 years ago

ghost commented 2 years ago
  1. Which is the sample codes to run multi-threading in python?
nshmyrev commented 2 years ago

See here

https://github.com/alphacep/vosk-api/blob/master/python/test/transcribe_scp.py

you can experiment with the number of threads but usually it has to be around number of cores.