What does input overflow mean?
In general, an input overflow means that the microphone has recorded more data than your program could deal with. Thus, microphone data is being discarded. Depending on your application, this might not be a problem at all. This usually happens if you take longer than one block length to process a block of data.
What is the purpose of PyAudio?
PyAudio provides Python bindings for PortAudio v19, the cross-platform audio I/O library. With PyAudio, you can easily use Python to play and record audio on a variety of platforms, such as GNU/Linux, Microsoft Windows, and Apple macOS. PyAudio is distributed under the MIT License.
What is PyAudio chunk?
"CHUNK" is the number of frames in the buffer. Each frame will have 2 samples as "CHANNELS=2". Size of each sample is 2 bytes, calculated using the function: pyaudio. get_sample_size(pyaudio. paInt16) .