pycord icon indicating copy to clipboard operation
pycord copied to clipboard

Audio sinks breaking on ubuntu

Open AWAS666 opened this issue 11 months ago • 0 comments

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?

    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 #52~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC

Checklist

  • [x] I have searched the open issues for duplicates.
  • [x] I have shown the entire traceback, if possible.
  • [x] I have removed my token from display, if visible.

Additional Context

No response

AWAS666 avatar Jan 19 '25 21:01 AWAS666