-
-
Notifications
You must be signed in to change notification settings - Fork 467
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
voice_client receiving voice errors / not working ? #2644
Comments
@borick Could you please share the full error traceback ? |
I have a similar error that's been plaguing me as well. I believe it's the same thing @borick is experiencing. It always happens every 3-20 seconds when receiving audio. I've been going crazy on this one, turning on/off various snippets in my own code to no avail. I'll attach my code as well for propriety--as it's only five small files--but I think this is an issue with the library itself, as my portion is never referenced in the call stack + keeps occurring no matter what I've tried. Exception
|
By my testing it seems to be when the audio is short, and nothing is being said / no actual sound is occurring. (keep in mind I'm using MP3Sink not WAVSink / your custom SilenceDetectionSink) I'm currently just modify the code snippet and putting it in a try-except block for Index errors but this is a really messy solution so hopefully we get a fix soon. @staticmethod
def strip_header_ext(data):
try:
if data[0] == 0xBE and data[1] == 0xDE and len(data) > 4:
_, length = struct.unpack_from(">HH", data)
offset = 4 + length * 4
data = data[offset:]
except IndexError as e:
print(f"The IndexError occurred but we will ignore it! Just means this part of the data probably is 0 bytes.. Data: {data}")
return data |
I want to mention I'm also getting this error. I wasn't getting it in the past, but since downgrading from Windows 10 to Windows 11 with a new PC, I started getting this error when I have multiple people speaking at the same time. |
Summary
trying to use voice_client getting errors
Reproduction Steps
talk to bot using discord voice and it errors out for me i'm not sure why, i'm trying to get the voice to respond to voice automatically without having to start a command is this possible?
Minimal Reproducible Code
Expected Results
it works, responds to voice
Actual Results
errors out , or does nothing
Intents
the default
System Information
intents = discord.Intents.default()
intents.message_content = True
intents.guilds = True
intents.voice_states = True
Checklist
Additional Context
n/a
The text was updated successfully, but these errors were encountered: