You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Audio sinks stop working after some time on ubuntu
Reproduction Steps
Basically I just use an Audiosink to record my voice.
My code has been working fine on windows and it also does on ubuntu, expect for the fact that the sinks stop working without an error after like 4-5 minutes.
I even wrapped the write in a try catch but to no avail, it doesn't throw anything.
Any idea how to fix this?
def write(self, data, user):
try:
data_len = len(data)
if data_len > self.data_length:
data = data[-self.data_length :]
# Send bytes to be transcribed
self.voice_queue.put_nowait([user, data])
except Exception as e:
print("Error in loop", e)
print("receiving")
Minimal Reproducible Code
Expected Results
It still working after a while
Actual Results
Not working, no errors thrown
Intents
all
System Information
Python v3.10.16-final
py-cord v2.6.1-final
aiohttp v3.11.11
system info: Linux 6.8.0-51-generic Voice Receive API #52~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC
Checklist
I have searched the open issues for duplicates.
I have shown the entire traceback, if possible.
I have removed my token from display, if visible.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Summary
Audio sinks stop working after some time on ubuntu
Reproduction Steps
Basically I just use an Audiosink to record my voice.
My code has been working fine on windows and it also does on ubuntu, expect for the fact that the sinks stop working without an error after like 4-5 minutes.
I even wrapped the write in a try catch but to no avail, it doesn't throw anything.
Any idea how to fix this?
Minimal Reproducible Code
Expected Results
It still working after a while
Actual Results
Not working, no errors thrown
Intents
all
System Information
Checklist
Additional Context
No response
The text was updated successfully, but these errors were encountered: