0

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.

n0n4m3
  • 43
  • 1
  • 2
  • 5
  • Did you install `pyaudio` by `sudo apt-get install python-pyaudio` – emesday May 21 '14 at 02:26
  • I first installed it by `sudo python setup.py install` and after I got the segmentation fault I installed it by `sudo apt-get install python-pyaudio` – n0n4m3 May 21 '14 at 04:18
  • Noticed that if I run any of the pyaudio samples with sudo it doesn't exit with the segmentation fault but I don't see any output, the app just holds for a few seconds and then exits without showing any messages. – n0n4m3 May 23 '14 at 03:28

0 Answers0