I installed PyAudio on my Raspberry Pi without any problems but I'm unable to run any sample test. If I run any of them the app just "pauses" for a while and then it quits with a segmentation fault.
I stripped out the code and found that these 2 lines of code produce the same result:
import pyaudio
p = pyaudio.PyAudio()
Do you know what might be causing this error?
I thought it could be a misconfiguration of the sound card but I tested recording and playing sound from the sound card with:
arecord -D plughw:0,0 -f cd test.wav
aplay test.wav
and it worked as expected.
Thank you.