Ogg files with no sound
Hi, I followed the github recorder example and managed to record some ogg files using my bot. But the files have no sound and seem to be corrupted. Here is my code for this part.
4 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.node version: v18.16.0
"@discordjs/opus": "0.8.0",
"@discordjs/voice": "0.11.0",
"discord.js": "^14.11.0",
"dotenv": "^16.3.1",
"ffmpeg": "^0.0.4",
"fluent-ffmpeg": "^2.1.2",
"libsodium-wrappers": "^0.7.11",
"prism-media": "2.0.0-alpha.0"
link of github recorder example: https://github.com/discordjs/voice-examples/tree/main/recorder
GitHub
voice-examples/recorder at main · discordjs/voice-examples
A collection of examples of how to use @discordjs/voice in your projects - voice-examples/recorder at main · discordjs/voice-examples
In the example I sent, the output stream is never flushed/closed. How should I flush/close the stream? Also the output ogg files have the size of 200-300 bytes, so it seems to me that the implementation is not working at all.
yeah I thought that wasn't needed. it now works. thanks a lot