On occasion when trying to play a sound in a voice channel, the beginning of the audio is cut off. It is as though there is not enough time given to play the entire clip.
On occasion when trying to play a sound in a voice channel, the beginning of the audio is cut off. It is as though there is not enough time given to play the entire clip.
c82dc32ca2 changes the voice channel disconnect wait method. Instead of waiting a hard set # of seconds for each soundfile, it drops into a sleep loop while the file is being played. The bot only disconnects from the voice channel after the player has stopped.
voice.play(audio_source, after=None)
while voice.is_playing():
await asyncio.sleep(1)
#time.sleep(playtime)
c82dc32ca26e449079c92878c0951b6507bc758e changes the voice channel disconnect wait method. Instead of waiting a hard set # of seconds for each soundfile, it drops into a sleep loop while the file is being played. The bot only disconnects from the voice channel after the player has stopped.
```
voice.play(audio_source, after=None)
while voice.is_playing():
await asyncio.sleep(1)
#time.sleep(playtime)
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
On occasion when trying to play a sound in a voice channel, the beginning of the audio is cut off. It is as though there is not enough time given to play the entire clip.
c82dc32ca2changes the voice channel disconnect wait method. Instead of waiting a hard set # of seconds for each soundfile, it drops into a sleep loop while the file is being played. The bot only disconnects from the voice channel after the player has stopped.After waiting a few days and testing, the issue appears to be resolved. The sound was not cut short at all!!!
closed