Duration Paramater with Voice Receiving
Can someone explain to me how the duration parameter works when it comes to voice receiving? I'm having trouble understanding what it actually does. Like its 100ms after what happens?
2 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Can you elaborate?
Actually, let me know if this seems accurate:
After the EndBehavior is emitted, 100ms after it is emitted, the opusStream ends?
Can you elaborate more on:
or it won't if silence ends before that timeI thought that the subscription only effected one user. And so if a different person started talking it wouldn't have that effect is it possible to disable this behavior somehow? I tried setting duration to 0 but when I do that the stream never stays alive for longer then a millisecond. No worries, just wanted to clarify when the user stops talking. I was hoping that "stopping talking" would be the green circle not appearing around the user anymore. I didn't realize that silence was separate from that green bubble indicator, that's helpful for me. But I still would love to have silence work with that green bubble indicator if that is possible. Additionally, and related to my other question I opened (#receiver.speaking.on start and opusStream not in sync), what is considered the "starting" and "stopping" of the receiver.speaking.on event? Is that one connected to the green bubble indicator? My main reason for asking these questions is because I've been dealing with inconsistencies with these types of things. I have an example in that other question. If you could take a look at that other question of mine which appears to be related, that would be awesome 🙏 I'd love to know more specifics on how silence and starting and stopping of speaking are work. Especially when dealing with lag and other similar issues am still looking for an answer regarding this ^ @qjuh hey there, you appeared to have some good knowledge on this, if you could take a look at this again that would be great 🙏