... pa = pyaudio.PyAudio() _stream = pa.open(format=pyaudio.paInt16, #data coming in at 16bit integer channels=1, rate=SMAPLING_RATE, # one channel -> mono input=True, frames_per_buffer=NUM_SAMPLES) Could having multiple/wrong version of PyAudio be causing this or is it an error in the code somewhere? ...