discordjs / voice

Implementation of the Discord Voice API for discord.js and other JS/TS libraries
Apache License 2.0
328 stars 112 forks source link

Constantly receiving voice streams #181

Closed mertushka closed 2 years ago

mertushka commented 2 years ago

Is your feature request related to a problem? Please describe. Maybe.

Describe the ideal solution Make an option to receive voice streams without Player going to idle state.

Describe alternatives you've considered I tried something but i think that code i wrote is performanceless. For example, the user stops talking for a short while and then starts again that means subscribing to a user, creating audio resource, playing into a voice channel over and over again.

Additional context Is there are other way more perfomance optimized? Screenshot_1

mertushka commented 2 years ago

Problem is fixed by adding silencePaddingFrames: Infinity to audio resources. Thanks to @amishshah for helping me to solve this issue.