PyAudio callback function called only once
问题 I'm trying to use PyAudio to simply reproduce a wav file using the non-blocking IO code available here: PyAudio documentation. Differently from the documentation, I'm trying to use numpy input data instead of bytes, so i'm using librosa to load my .wav file instead of wave as shown in the documentation. My code is the following one, it's self contained and reproducible, you just have to change the filename with the one of a wave audio you want to reproduce: import pyaudio import wave import