lost
User audio processing only works after rejoin
you could maintain your own map of ssrc to an actual discord user if you need. just listen to the speaking event from the voice gateway. or if youre fine with the ssrc being your identifier per user, that works fine too
23 replies
User audio processing only works after rejoin
kord does the ssrc <-> user mapping but i guess discord changed some stuff to where theres a race condition between when kord begins listening for this mapping notice (speaking event), versus when its actually sent
23 replies
User audio processing only works after rejoin
voice connections send audio packets linked to an ssrc (a unique identifier for each user). whats happening is that a cache which builds the ssrc <-> discord user map has to be populated and isnt known when the bot joins (until, for example, you rejoin and discord lets us know of this new ssrc <-> user mapping). not sure if this is intentional or a bug, its been a few years. if a flow that provides packets mapped to a unique ssrc will suffice, use the
incomingAudioFrames
flow. in the mean time ill see what we could to build this map instantly, since obviously the discord client can do it too.23 replies
Does receiveVoice still work?
discord did an update to voice that deprecates the encryption kord (and most other libs) used. shouldn’t be out until november or something but i wouldn’t be surprised if it’s something to do w that since it’s discord and it’s on the undocumented receiving end. kord will need to be updated according to the new docs and maybe your issue will be resolved along side it as new encryption methods will be implemented. haven’t looked at the stackstrace tho, could be sum else; js started uni. little time on my pc :pained_smile:
20 replies
Does receiveVoice still work?
fair enough. logs would be helpful, but im not sure if voice has ever been tested on android. i dont have the time at the moment to look into it, but i suppose there could be something with initializing the incoming socket due to whatever android limitations there are. just a guess rn
20 replies