PyAudio throwing Input overflowed - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: PyAudio throwing Input overflowed (/thread-27631.html) |
PyAudio throwing Input overflowed - anthares - Jun-14-2020 Hello everyone, I am trying out pyaudio with python3. I am following the example provided at this link to record audio with pyaudio. https://realpython.com/playing-and-recording-sound-python/ However, when I try to execute it without making any changes at all, I get Any possible work around to this? Thanks in advance, G. RE: PyAudio throwing Input overflowed - pyzyx3qwerty - Jun-14-2020 Please use proper code tags while posting a thread, see BBCode to know more. RE: PyAudio throwing Input overflowed - anthares - Jun-14-2020 I read in few posts to try to increase the chunk size. I was about to give up when I saw that even a value equal to 65535 was not giving any benefit. I tried to double that up, and with a chunk size equal to 131072 it works... Is this the expected behaviour? ...I thought that was somehow a solution but it is not.. The issue still exists... any idea? thanks. RE: PyAudio throwing Input overflowed - anthares - Jun-14-2020 I dropped the bitrate down to 22050 monochannel, and it doesnt overflow anymore. But I still don't understand how to proceed if I want to stick to the 44100. |