Posts: 1
Joined: Tue May 20, 2014 3:14 pm
Location: Toronto
Contact: Website

PyAudio Segmentation Fault

Tue May 20, 2014 4:14 pm

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.

Return to “Python”