Closed josephernest closed 3 years ago
It fails to find PulseAudio and initialize it. Do you have it installed and running when import
ing soundcard?
This solved it indeed! I used it on Windows exclusively and as it worked out-of-the-box, I thought it would be the same with Linux / Raspberry Pi. Installing PulseAudio and doing pulseaudio -D was necessary as well.
Thanks!
Desktop Linux typically has pulseaudio installed and configured by default. Apparently, Raspbian does not. Thank you for reporting, and figuring out your problem.
If you would like, I'd be grateful for a pull request that adds a note about running it on a Raspberry Pi in the readme (probably under an FAQ heading).
Good idea @bastibe. Added here: https://github.com/bastibe/SoundCard/pull/117
Hello, When doing
import soundcard
on a Raspberry Pi (RaspiOS Buster image "2020-08-20-raspios-buster-armhf-lite.zip", Python 3.7.3, numpy already installed), it blocks and never returns, so I have to CTRL+C to stop it:Do you know the reason why doing just
import soundcard
makes it enter an infinite looptime.sleep(0.001)
@bastibe?All the best