Joopst
Joopst
DIAdiscord.js - Imagine an app
Created by Joopst on 2/1/2023 in #djs-questions
Replying to a message
Hey, I'am trying to have my discordjs bot reply to a message. I get that i can do message.channel.send(); Is there something like message.member.reply();
8 replies
DIAdiscord.js - Imagine an app
Created by Joopst on 11/12/2022 in #djs-voice
Getting amplitude value from pcm stream
Hey guys. I am trying to get an amplitude value from my live pcm stream but very stuck. Code below
5 replies
DIAdiscord.js - Imagine an app
Created by Joopst on 11/12/2022 in #djs-voice
How te get buffer from opusStream
Hey guys. I was able to create an opus stream from voice
connection.receiver.speaking.on('start', userId => {
if (!connection.receiver.subscriptions.has(userId))
{
const opusStream = connection.receiver.subscribe(userId, {
end: {
behavior: EndBehaviorType.Manual,
},
});
connection.receiver.speaking.on('start', userId => {
if (!connection.receiver.subscriptions.has(userId))
{
const opusStream = connection.receiver.subscribe(userId, {
end: {
behavior: EndBehaviorType.Manual,
},
});
I want to decode this using opusEndocder.decode but the input needs to be buffer
2 replies
DIAdiscord.js - Imagine an app
Created by Joopst on 11/10/2022 in #djs-voice
Getting amplitude from opusStream
Hey Guys. I am trying to get an amplitude or volume from an opus stream. I would like to figure out if a person is yelling or whispering. No idea where to start. I tried using OpusEncoder.decode with data from opusStream but i don't get any usable information out of it.
9 replies
DIAdiscord.js - Imagine an app
Created by Joopst on 11/9/2022 in #djs-voice
Receiving and playing back voice
Hey Guys currently trying to have my bot join a voicechanne, start receiving audio and then playing that audio back. I feel like it's not staying subscribed...
11 replies