• Uncategorized

About linux : deployment-of-Linux-program-on-Windows-that-needs-audio-recording

Question Detail

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,

Question Answer

I resolved the problem…

1- For PULSE_SERVER, export the ip of your computer not

2- Set the variable record to 1 instead of 0 in module-waveout.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.