I found https://github.com/esologic/pear by esologic, that does the job in theory.
It works for 3 usb audio cards without problem, but I get this error:
Code: Select all
Traceback (most recent call last):
File "/home/cedric/pear/pear.py", line 113, in <module>
streams = [create_running_output_stream(index) for index in usb_sound_card_indices]
File "/home/cedric/pear/pear.py", line 113, in <listcomp>
streams = [create_running_output_stream(index) for index in usb_sound_card_indices]
File "/home/cedric/pear/pear.py", line 75, in create_running_output_stream
output = sounddevice.OutputStream(
File "/home/cedric/.local/lib/python3.9/site-packages/sounddevice.py", line 1494, in __init__
_StreamBase.__init__(self, kind='output', wrap_callback='array',
File "/home/cedric/.local/lib/python3.9/site-packages/sounddevice.py", line 898, in __init__
_check(_lib.Pa_OpenStream(self._ptr, iparameters, oparameters,
File "/home/cedric/.local/lib/python3.9/site-packages/sounddevice.py", line 2745, in _check
raise PortAudioError(errormsg, err, hosterror_info)
sounddevice.PortAudioError: Error opening OutputStream: Unanticipated host error [PaErrorCode -9999]: 'No space left on device' [ALSA error -28]
I'm using a RPi 4 (4GB) running bullseye Raspberry Pi OS lite x64, a cheap USB 3.0 hub with 7 ports and 5 cheap usb audio dongles. All of these work well individually.
I'm assuming this is an issue with the amount of streams that can be opened. Whether that's a raspberry pi limitation or a bandwidth issue with the USB hub I'm using, I'm not sure. I did come across someone online who managed to get 8 working, so now I'm confused as to what is going wrong.
Does anyone have any information that could help?
The project is due in 2 days, so I need to figure this out asap
