Replies: 5 comments 8 replies
-
I am having the same issue, is anybody planning to fix this? I use WSL to test applications before I deploy them to edge compute platforms. |
Beta Was this translation helpful? Give feedback.
-
Please see #9896 for additional information. I have it running successfully with many ALSA lib messages being displayed. |
Beta Was this translation helpful? Give feedback.
-
At the time being, has anyone succeeded to have pyaudio working in WSL2? |
Beta Was this translation helpful? Give feedback.
-
Hey guys, some progress on my side! I found out that if I run The following works if I run it with import speech_recognition as sr
for index, name in enumerate(sr.Microphone.list_microphone_names()):
print("Microphone with name \"{1}\" found for `Microphone(device_index={0})`".format(index, name)) I have tried adding I also found out that the pulse audio server from #this works
arecord test.wav
aplay test.wav
#this doesn't
sudo arecord test.wav
sudo aplay test.wav Maybe @EdSeymore this shines some light for others to come up with the missing pieces. But I feel it should be working... On a side note, I recompiled the linux kernel enabling arecord -l
arecord: device_list:274: no soundcards found...
sudo arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Dummy [Dummy], device 0: Dummy PCM [Dummy PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
|
Beta Was this translation helpful? Give feedback.
-
If it will be of help to anyone, following worked for me after a lot of debugging in Ubuntu with wls and os version: |
Beta Was this translation helpful? Give feedback.
-
Would like to access the microphone and speakers from python3 application. I tried various approaches without success. I also was unable to get gradio to function with python3 on ubuntu. Also, the speakers do not honor my request to default to HDMI speakers when a USB micropohne with an earphone port is present without the earphone attached.
Beta Was this translation helpful? Give feedback.
All reactions