SoundCard
SoundCard copied to clipboard
Empty result for all_speakers/all_microphones on Ubuntu OS
Hi, I've installed soundcard module, but I ran soundcard.all_speakers() only get an empty list. Is there somthing wrong on my sound device?
Is there any error message?
I just got [] after runnning sc.all_speakers(), but I got some error message while running my code :
Exception ignored from cffi callback <function _PulseAudio.server_info.
Is this because there's no available speaker detected?
it seems that pulseaudio does not return a default_sink name. There's probably something about your pulseaudio that is not properly set up.
OK, thanks. I'll check my pulseaudio. Thank you for replying.
Hi, now I can get audio loopback with soundcard and record it, but I have another question. Is it possible to keep using loopback with soundcard module? Just like using sounddevice.InputStream().
Use the with
-context manager, and keep recording for as long as you like.