#Custom TTS bot cutting off early

15 messages · Page 1 of 1 (latest)

cerulean path
#

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

frank perchBOT
#

• 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.

cerulean path
#

The latest version of discord js v13

graceful yarrow
#

State an actual version number. Latest isn’t one. And what version of /voice?

cerulean path
#

"discord.js": "^13.16.0",
"@discordjs/voice": "^0.16.0",

#

"ffmpeg-static": "^5.1.0"

cerulean path
#

can someone pls help

cerulean path
#

@graceful yarrow

#

???

#

the bot seems to idle randomly

#

i checked its states

#

it doesnt play the entire audio file

graceful yarrow
waxen lake
#

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?)