Custom TTS bot cutting off early
I made a TTS bot earlier today and I’ve been trying to use it and it works and it creates the audio files and play them, however, it cuts off early like 95% of the time, but the audio file is fine, so it’s the bot who keeps cutting off, I’m using discordjs/voice and ffmpeg-static, idk what to do
https://pastebin.com/giHPa0bW
Pastebin
const Discord = require('discord.js');const { Player, Queue } = req...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
3 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.The latest version of discord js v13
"discord.js": "^13.16.0",
"@discordjs/voice": "^0.16.0",
"ffmpeg-static": "^5.1.0"
can someone pls help
@qjuh
???
the bot seems to idle randomly
i checked its states
it doesnt play the entire audio file
just to cover all bases
1. could you generate and log a dependency report? (as seen here https://discordjs.guide/voice/#debugging-dependencies)
2. are you sure this isn't just a client side issue? are other users able to observe the same behavior?
a quick dive into this tts package you're using reveals a method for just creating a stream without needing to write to file
is there a reason you're using the method that writes to a file? (which is to say, do you even need the file?)