Dec-01-2020, 06:20 PM
(This post was last modified: Dec-01-2020, 06:21 PM by Talking2442.)
Yes thats true but on this example you play a WAV file not a WAV variable.
On my example it neeeds an Integrer instead of bytes so I've tried
I want understand and learn how to fix errors not giving anyone a Job
Regards
Talking2442
On my example it neeeds an Integrer instead of bytes so I've tried
def play(self, recording): print('Playing...') while len(recording) > 0: # self.stream.read(recording) self.stream.read(int.from_bytes(recording, 'little', signed=True)) self.stream.readframes(CHUNK) # cleanup stuff. self.p.close() self.p.terminate()But the error is:
Error:"/home/user/.local/lib/python3.7/site-packages/pyaudio.py", line 608, in read
return pa.read_stream(self._stream, num_frames, exception_on_overflow)
OverflowError: Python int too large to convert to C long
Any better solutions to fix that?I want understand and learn how to fix errors not giving anyone a Job

Regards
Talking2442