I have python based program which will record audio using USB headset and it will classify which type of audio it is. We are recording audio for 1 second and then classifying. Classification takes nearly 600 millisecond. So during classification time, I am loosing incoming audio.
So I need some program using python for multi tasking or multi threading to minimize the delay.
The code should run in both windows and linux (preferably Raspberry Pi) platform. Programmer can write 2 different programs for windows and linux if required.
As classification, audio recording and basic operation functions are available so no need to write any code for this. Only multi tasking code need to be developed along with me.