-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sounddevice not finding valid USB device on Bullseye #471
Comments
I am having the same frustrating problem. I have not been able to find an answer yet. In my case, $ lsusb produces: Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub sd.query_devices() produces: 0 sysdefault, ALSA (0 in, 128 out) Baffled. |
The devices are detected (or not) by the underlying PortAudio library. You should try it with some other software that uses PortAudio (e.g. Audacity) to confirm that this problem is not caused by the Python wrapper. You can report issues with the PortAudio library at https://github.com/PortAudio/portaudio/issues. You can also try to compile the latest development version from source, maybe the problem has been fixed there. |
@mgeier A helpful comment, thank you. An idea I had not considered. I found that VLC does see the audio devices and I can playback audio from them. So, if I understand what you are saying, I can conclude that PortAudio is working properly and the problem must lie with Python. Can you point me in the direction of troubleshooting Python instructions? |
AFAIK, VLC doesn't use PortAudio. |
Same here :( A USB and an internal audio device are not recognised by sounddevice any more, even though alsamixer and ALSA-based programs can use them. The issue appeared on a Raspberry Pi 4B after upgrading from Raspbian buster to bullseye. Short chronology:
Seems to me like a problem between sounddevice or the underlying portaudio library and the kernel. The problem looks like this. On the ALSA side, the internal sound card and the USB device is visible:
sounddevice however only exposes some default devices:
With the older kernel, everything is accessible:
How should we proceed from here on, is the bug already reported in portaudio? Or does anyone know a workaround? (I'm no ALSA crack, but almost anything can be solved with .asoundrc magic.) (EDIT: clarified that all hw sound devices are affected, and posted result from downgraded kernel) |
I don't know. You should check and create an issue if not. |
I have used Sounddevice successfully on previous projects running on Debian Buster. I know how it works and how to install it etc.
Presently I am working on Bullseye 32-bit kernel. Sounddevice no longer works because it does not find the USB microphone. It's the same microphone running the same python commands.
The USB microphone (ZOOM H3-VR) connects without issue to RPi 4B and is listed by
lsusb
. The microphone operates successfully using the GNOME Sound Recorder both as an input and output device. So there is no evidence of any problem with ALSA etc.Evidently the USB mic is connected:
And
$ cat
also confirms that the H3-VR is attached as USB audio:But when I try sd.query_devices(), the ZOOM H3-VR does not appear:
I have tried re-installing PortAudio. Nothing.
Any suggestions? Why does sounddevice not find a USB microphone that evidently does exist and is connected?
Please note: I am not asking why the microphone is not found by the RPi. It is found and works fine on GNOME. Nor am I asking about 64-bit kernels, which I see others are grappling with.
Grateful for any suggestions.
The text was updated successfully, but these errors were encountered: