#socket randomly stops receiving data
1 messages ยท Page 1 of 1 (latest)
Please open your own help post
unpack_audio will be None if nobody is talking, can you use this as a trigger to know when to stop?
https://docs.pycord.dev/en/master/api.html?highlight=voiceclient#discord.VoiceClient.unpack_audio
yes but my problem is that unpack_audio doesn't get called although someone is speaking
@heavy mica could you try the code example i provided in the stackoverflow question and tell me if you have the same issue. Maybe it's not because of discord/pycord but it's with my internet connection or something
you'd need to call it
with what data
unpack_audio as the name suggests unpacks the received voice from the channel. the problem is there is no voice data :/
wouldn't the data be in the sink?
why did you delete your original message ๐
I'm not sure exactly, I haven't tested it myself I'm just going off of the docs
first the data gets unpacked, then stored in the sink..
i wanted to delete the thread
but didn't work out
yeah you can't do that
don't you still need help though?
I can archive it for you if you want
yes need help desperately
so why would you delete the thread ๐
roger
have you tried running the code?
no I'm not at my workstation
okay :c
Any updates? there is a function in js that can do this but nothing in python. Can we use the discord api directly to check if a user is speaking?