Page 1 of 1

PyAudio Segmentation Fault

Posted: Tue May 20, 2014 4:14 pm
by n0n4m3
I'm having a problem using PyAudio on my Raspberry Pi.
All the samples seem to behave the same way and I've pinpointed the problem to this smallest snippet:

Code: Select all

import pyaudio

p = pyaudio.PyAudio()
I get a segmentation fault whenever the code tries to initialize PyAudio.
Do you know what might be causing this?
Is there any way to get more information on why the segmentation fault is occurring?

I've tested recording and playing sound from the sound card with:

Code: Select all

arecord -D plughw:0,0 -f cd test.wav
aplay test.wav
And this worked fine.

Thank you.