Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio sinks breaking on ubuntu #2694

Open
3 tasks done
AWAS666 opened this issue Jan 19, 2025 · 0 comments
Open
3 tasks done

Audio sinks breaking on ubuntu #2694

AWAS666 opened this issue Jan 19, 2025 · 0 comments
Labels
unconfirmed bug A bug report that needs triaging

Comments

@AWAS666
Copy link

AWAS666 commented Jan 19, 2025

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 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

@AWAS666 AWAS666 added the unconfirmed bug A bug report that needs triaging label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirmed bug A bug report that needs triaging
Projects
None yet
Development

No branches or pull requests

1 participant