Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: PyAudio throwing Input overflowed
Post: RE: PyAudio throwing Input overflowed

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.
anthares General Coding Help 3 4,810 Jun-14-2020, 03:37 PM
    Thread: PyAudio throwing Input overflowed
Post: RE: PyAudio throwing Input overflowed

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 siz...
anthares General Coding Help 3 4,810 Jun-14-2020, 09:15 AM
    Thread: PyAudio throwing Input overflowed
Post: PyAudio throwing Input overflowed

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-recor...nd-python/ However,...
anthares General Coding Help 3 4,810 Jun-14-2020, 08:50 AM
    Thread: np array tolist and back
Post: RE: np array tolist and back

Man! you are saving me so much time! :) Thanks so much!! ... frame = np.array(incoming_message, dtype=np.uint8) reshaped_frame = frame.reshape((480, 640, 3)) cv2.imwrite('debug.jpg', reshaped_fra...
anthares General Coding Help 2 1,993 Jun-13-2020, 06:58 AM
    Thread: np array tolist and back
Post: np array tolist and back

Hi everyone, I am pretty new to Python and I am seeking some help and guidance. I use OpenCV to grab frames from video cap: ret, frame = self.cap.read()frame.shape here is (480,640,3) For subsequ...
anthares General Coding Help 2 1,993 Jun-13-2020, 06:17 AM
    Thread: Deque to string in Python 3
Post: RE: Deque to string in Python 3

all_data = b''.join(frames) sorted out the problem... thanks!
anthares General Coding Help 4 4,650 Jun-11-2020, 06:18 AM
    Thread: Deque to string in Python 3
Post: RE: Deque to string in Python 3

TypeError: sequence item 0: expected str instance, bytes found the actual code is: frames = deque(maxlen=self.previous_audio_seconds * chunks_per_second) ... # frames is filled in with a pyaudio s...
anthares General Coding Help 4 4,650 Jun-11-2020, 05:28 AM
    Thread: Deque to string in Python 3
Post: Deque to string in Python 3

Hi everyone, Fairly new to Python here and dealing with some legacy code. n Python2 I was able to do something similar to: frames = deque(maxlen=xyz) framesString = ''.join(frames)In Python3 I get ...
anthares General Coding Help 4 4,650 Jun-11-2020, 05:07 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020