How to include silence in vc recording
I’m trying to record a vc, I’m using this and the module mediaplex for the opus encoder:
The problem here is it won’t record the silences when a member stops speaking for 5 seconds for exemple, is there a way to add them manually, so the length of the final audio is reflective of the actual time the member was recorded for, and not just the moments where they speak?
3 Replies
- What are your intents?
GuildVoiceStates
is required to receive voice data!
- Show what dependencies you are using -- generateDependencyReport()
is exported from @discordjs/voice
.
- Try looking at common examples: https://github.com/discordjs/voice-examples.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPyou're going to need to add silence frames when the user isn't speaking
idk if there's anything in the library to help do this
but it will be similar to how audioresource does it (since there's an option to add silence padding frames when playing audio)
https://github.com/discordjs/discord.js/blob/main/packages/voice/src/audio/AudioResource.ts#L154-L159
damn i swear there used to be a bot to auto embed this
yes managed to do it that way thanks