I’ve a python code with packages that only support Linux, and it requires audio recording as well. The code is expected to run on Windows for deployment.
I’ve tried 2 solutions for that:
1- Linux docker container, the container works on Windows without any problem, but it couldn’t record audio (it couldn’t see the microphone and it was producing alsa errors). I tried many solutions that include PulseAudio, but none could solve the problem.
2- WSL/WSL2, the code works and it didn’t show any error. I can play audio in WSL and hear it from my headphones, but I couldn’t record anything from my microphone. I tried many solutions as well but none works for me (solutions with PulseAudio).
Do you have any suggestions or any solutions for the problems above that you have tested yourself?
Thank you,