Add the ability for WSL to have a soundcard driver
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
Windows Build Number
Microsoft Windows [Version 10.0.22000.132]
WSL Version
- WSL 2
- WSL 1
Kernel Version
5.10.43
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
no soundcard found:
(base) baixin@DESKTOP-GDB8QO1:~$ aplay -l
aplay: device_list:276: no soundcards found...
(base) baixin@DESKTOP-GDB8QO1:~$ lspci
0342:00:00.0 SCSI storage controller: Red Hat, Inc. Virtio filesystem (rev 01)
46ee:00:00.0 SCSI storage controller: Red Hat, Inc. Virtio filesystem (rev 01)
74b1:00:00.0 System peripheral: Red Hat, Inc. Device 105a (rev 01)
7cbb:00:00.0 SCSI storage controller: Red Hat, Inc. Virtio filesystem (rev 01)
953b:00:00.0 SCSI storage controller: Red Hat, Inc. Virtio filesystem (rev 01)
9bcf:00:00.0 SCSI storage controller: Red Hat, Inc. Virtio filesystem (rev 01)
d7c6:00:00.0 3D controller: Microsoft Corporation Device 008e
However I could record voice with arecord and play back with aplay / vlc, strange.
For dev purpose I need to get the sound card with python sounddevice package.
Just started to install WSL2 yesterday and finished the installation today, so far everything else works fine, this is the only issue I met till now.
Expected Behavior
soundcard should be reported with aplay -l or lspci.
Actual Behavior
soundcard is not reported with aplay -l or lspci.
Diagnostic Logs
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the WSL 2 behavior with aplay -l, lspci, arecord, and the Python sounddevice package on the reported Ubuntu setup. Investigate how WSL exposes audio devices and what driver or device integration is missing. Done means the soundcard is reported by aplay -l or lspci and is usable through sounddevice.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, python, ubuntu
- Domain
- audio-video-rtc, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100