Skip to content

refactor(voice): Rewrite Voice Internals & DAVE Support (send)#2873

Open
DA-344 wants to merge 84 commits intoPycord-Development:masterfrom
DA-344:feat/voice-rewrite-and-fixes
Open

refactor(voice): Rewrite Voice Internals & DAVE Support (send)#2873
DA-344 wants to merge 84 commits intoPycord-Development:masterfrom
DA-344:feat/voice-rewrite-and-fixes

Conversation

@DA-344
Copy link
Contributor

@DA-344 DA-344 commented Aug 21, 2025

Summary

Rewrites voice internals to have a cleaner, easier-to-maintain, voice implementation.

Adds support for DAVE connections.

Voice receive is currently broken

-> This code is partially inspired on discord.py's current voice implementation

Information

  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed).
  • This PR is not a code change (e.g. documentation, README, typehinting,
    examples, ...).

Checklist

  • I have searched the open pull requests for duplicates.
  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why.
  • I have updated the changelog to include these changes.

Related

Fixes #2833

@DA-344 DA-344 changed the title Voice internals rewrite to fix things fix(voice): Voice internals rewrite to fix things Aug 26, 2025
@Lulalaby
Copy link
Member

Lulalaby commented Mar 4, 2026

if we have to do breaking changes with sinks, then do it now.

@Paillat-dev Paillat-dev changed the title refactor(voice): Rewrite Voice Internals & DAVE Support refactor(voice): Rewrite Voice Internals & DAVE Support (recieve) Mar 4, 2026
Comment on lines +1 to +6
"""
discord.voice.packets
~~~~~~~~~~~~~~~~~~~~~

Sink packet handlers.
"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

License header

@@ -0,0 +1,8 @@
from .reader import AudioReader
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

License header


from typing import TYPE_CHECKING

from .utils import deprecated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the from typing_extensions import deprecated one

@AhmedERady

This comment was marked as resolved.

@Paillat-dev Paillat-dev linked an issue Mar 4, 2026 that may be closed by this pull request
This was unlinked from issues Mar 4, 2026
@Paillat-dev Paillat-dev changed the title refactor(voice): Rewrite Voice Internals & DAVE Support (recieve) refactor(voice): Rewrite Voice Internals & DAVE Support (send) Mar 4, 2026
@Paillat-dev
Copy link
Member

@AhmedERady Currently voice reception does not work, and will most likely not through this pull request.

break
else:
self.counter += 1
time.sleep(self.delay)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will sleep for 5000 seconds

DA-344 and others added 4 commits March 5, 2026 18:32
Co-authored-by: Paillat <paillat@pycord.dev>
Signed-off-by: DA344 <108473820+DA-344@users.noreply.github.com>
Co-authored-by: Paillat <paillat@pycord.dev>
Signed-off-by: DA344 <108473820+DA-344@users.noreply.github.com>
Co-authored-by: Paillat <paillat@pycord.dev>
Signed-off-by: DA344 <108473820+DA-344@users.noreply.github.com>
Co-authored-by: Paillat <paillat@pycord.dev>
Signed-off-by: DA344 <108473820+DA-344@users.noreply.github.com>
@DA-344
Copy link
Contributor Author

DA-344 commented Mar 5, 2026

if we have to do breaking changes with sinks, then do it now.

breaking changes to sinks will be made in the sinks PR instead

@YousofHajHasan

This comment was marked as resolved.

@Paillat-dev
Copy link
Member

Yes @YousofHajHasan , you can follow development here: #3139

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: high High Priority voice Related to the voice chat feature

Projects

None yet

6 participants