Hi all
I'm having a few problems with the audio on my B+ running the minimal raspbian images from
Relevant distro/kernel version info: paul@pi:~$ cat /etc/debian_version
7.6 paul@pi:~$ uname -a Linux raspberry-pi 3.12.25+ #700 PREEMPT Thu Jul 24 17:51:46 BST 2014 armv6l GNU/Linux paul@pi:~$I'm no stranger to linux, but I mostly play in the server space and linux audio is a notoriously tangled pile of mischief and it's got me stumped somewhat.
I've got ALSA working, and got to the point where aplay will hapilly play the audio I want to work with.
However, I want to run some python which uses PyAudio to handle the audio. This is where I'm hitting problems. It seems that PyAudio depends on jackd, which won't run on 3.12 kernels, and the script eventually bombs out with:
FATAL: cannot locate cpu MHz in /proc/cpuinfo
It looks like this isn't fixable without building libjack-jack2-0 from source or rolling my own kernel [1] (neither are something I'm particularly keen to do as I much prefer packages where possible... for lots of reasons.)
So my question is: Can I somehow tell PyAudio (or the underlying portaudio) to ignore jackd and just use ALSA? If not, is there some other way I can fix it?
If it's not fixable, I'm prepared to throw out all this code and reimplent it using some other python module. Before I embark on that adventure though it would be good to know what peoples preferred python module is for audio playback.
Any pointers gratefully received!
-Paul [1]